Creating a Custom Server IP with Cloudflare

Minecraft

·

Sep 11, 2024

·

17 Mins Read

In order for a player to join your Minecraft server, they need to have your server address to enter on their Minecraft client. By default, a server address is an IP & Port combined to look like this: 192.168.1.2:25463.

When creating a custom IP, you want a domain that can easily be read and recalled. Domains come in two variants which are called a domain (e.g. shockbyte.com) or a subdomain (e.g. play.shockbyte.com).


# Getting Started on Cloudflare

Before you can create a record, you will need to gain access to your domains advanced DNS settings.

  1. Log into your Cloudflare account. On the upper-left section of your Cloudflare dashboard, click on the Select Website menu and select the domain you want to use.

select domain on cloudflare

  1. On your domain's page, click on the DNS option.

cloudflare dns options

# Creating an A Record

If your Minecraft server has a Dedicated Port (:25565), then you can create an A Record as it does not require a specified port.

  1. On DNS page, you will need to create an A Record.

The entries will vary depending on what you would like as your custom IP - a domain (e.g. shockbyte.com) or subdomain (e.g. play.shockbyte.com).

# Custom Domain - A Record

  • Type: A
  • Name: @
  • IPv4 address: Your Minecraft Server IP e.g. 192.168.1.1
  • TTL: Automatic TLL

creating an A Record with a domain on cloudflare

# Custom Subdomain - A Record

  • Type: A
  • Name: The first part of your custom subdomain, for our example it's play.
  • IPv4 address: Your Minecraft Server IP e.g. 192.168.1.1
  • TTL: Automatic TTL

creating an A Record using a subdomain on cloudflare

  1. After filling out all the entries, click Add Record.

# Creating an SRV Record

If your Minecraft server does not have a Dedicated Port (:25565), then you can create an SRV record as it requires the user to specify a port.

  1. From the Type dropdown list, select SRV Record.

creating an srv record on cloudflare

  1. On the DNS page, create your SRV Record.

The entries will vary depending on what you would like as your custom IP - a domain, or subdomain.

# Custom Domain - SRV Record

  • Service: _minecraft
  • Protocol: TCP
  • Name: Your domain.

creating an SRV record name on cloudflare

Click save, and proceed to the next page and continue filling out the SRV content with the following:

  • Priority: 0
  • Weight: 0
  • Port: Your Minecraft server's port (e.g. 25463)
  • Target: Your domain.

Click save again to finish filling out the SRV entries.

filling out SRV record entries to create custom domain

# Custom Subdomain - SRV Record

  • Service: _minecraft
  • Protocol: TCP
  • Name: Your subdomain.

creating an srv record with subdomain on cloudflare

Click save, and proceed to the next page and continue filling out the SRV content with the following:

  • Priority: 0
  • Weight: 0
  • Port: Your Minecraft server's port e.g. 25463
  • Target: Your subdomain

Click save to finish filling out the SRV entries.

finish creating an srv record with a subdomain on cloudflare

  1. Click Add Record to save the SRV Record.

a successfully created SRV record with domainsuccesfully created srv record with subdomain

Once you've completed the steps above, you will now be able to use your domain or subdomain as your custom server IP! If it doesn't work immediately, please allow up to 24 hours for the changes to take effect.

minecraft pfp
Jay Miller

Game Experience Engineer @ Shockbyte