Creating a Custom Server IP with Cloudflare

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 looks something like this: 192.168.1.2:25463 but it can be confusing. You want something that can easily be read and recalled. To do that, you can customize your server address by using a domain (e.g shockbyte.com) or subdomain (e.g. play.shockbyte.com). 

This tutorial will teach you how to create a custom IP with a domain under Cloudflare. You may check out our other tutorials for creating custom IPs here:

We have a video tutorial for creating a custom IP for your server:


Before you begin with this tutorial, you will need the following:

Note: You must have full access to manage your domain's DNS settings on Cloudflare.
  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.
    Cloudflare - select domain

  2. On your domain's page, click on the DNS option.
    Cloudflare - DNS settings

  3. On DNS page, you will need to create an A Record and the entries will vary depending on what you want for 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 (default)

      Cloudflare - domain A record


    CUSTOM SUBDOMAIN - A Record

      - Type: A
      - Name: play
      - IPv4 address: Your Minecraft Server IP e.g. 192.168.1.1
      - TTL: Automatic TTL (default)

      Cloudflare - subdomain A record

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


 

Creating an SRV Record (for Servers without Dedicated IP)

With a Dedicated IP, your server will be assigned the default port for Minecraft. Because of this, you do not need to include the trailing port (e.g. :25463) after the server IP when joining your server.  If you would like to get the Dedicated IP add-on for your server, you may refer to this article to know more: How to: Get a Dedicated IP (Default Port)

If your server doesn't have a Dedicated IP and would like to use a custom domain or subdomain to connect to your server, you need to create an SRV record by following the steps below:

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

  2. A popup will appear wherein you need to fill out the first part of the SRV name with the following depending on whether you are making a custom domain or subdomain:

    CUSTOM DOMAIN - SRV Record

      - Service: _minecraft
      - Protocol: TCP
      - Name: Your domain e.g. shockbyte.com

      Click Save to proceed to the next page and continue filling out with the SRV content following:
      
      - Priority: 0
      - Weight: 0
      - Port: Your Minecraft server's port e.g. 25463
      - Target: Your domain e.g. shockbyte.com

      Click the Save button again to finish filling out the SRV entries.

      Cloudflare - domain srv name Cloudflare - domain srv content


    CUSTOM SUBDOMAIN - SRV Record

      - Service: _minecraft
      - Protocol: TCP
      - Name: Your subdomain e.g. play.shockbyte.com

      Click Save to 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 e.g. play.shockbyte.com
     
      Click the Save button again to finish filling out the SRV entries.

      Cloudflare - subdomain srv nameCloudflare - subdomain srv record  

  3. Click Add Record button to save the SRV Record.
    Cloudflare - Domain add srv record

    Cloudflare - subdomain add srv record

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.

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

  • Cloudflare, custom domain, custom subdomain, domain, subdomain, custom ip, server ip, custom server address, server address
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Login Error: Failed to verify username/Connect to Minecraft

The failed to verify username means that the Minecraft/Mojang authentication servers are down,...

How to: Update your servers jar / mod-pack.

To install a Custom JAR, please view the following article:...

How to: Use FileZilla as a FTP client

This tutorial has been updated. Click here to view the new version.  ...

Creating a Custom Server IP with cPanel

In order for a player to join your Minecraft server, they need to have your server address to...

Creating a Custom Server IP with GoDaddy

In order for a player to join your Minecraft server, they need to have your server address to...