How to Connect a Domain with a Minecraft Server with a Dedicated IP (Cloudflare)

  1. Log in to the Cloudflare dashboard and select your domain.

  2. Click on “DNS” on the left side, then click on “Add Record”. First, we need to create an “A” record. You need to fill out the following:

    • Name: This is the option for whether it should be a subdomain or not. In this example, we use “play”. This means we will connect using play.domain.com.
    • IPv4 Address: This is the IP of the server without the port numbers.
    • Proxy Status: Disable this option. It should display a grey cloud with the text “DNS Only”.
    • TTL: Leave this on Auto.

  3. Once completed, click “Save”.
  4. Your domain is now usable. Players can now connect to your Minecraft server using the domain.

 

How to Connect a Domain with a Minecraft Server without a Dedicated IP (Cloudflare)

Please note that this method does not work with Minecraft Bedrock. You will need to specify the port when connecting to the server or obtain a dedicated IP for your Minecraft Bedrock server.

  1. Log in to the Cloudflare dashboard and select your domain.

  2. Click on “DNS” on the left side, then click on “Add Record”. First, we need to create an “A” record. You need to fill out the following:

    • Name: This is the option for whether it should be a subdomain or not. In this example, we use “play”. This means we will connect using play.domain.com.
    • IPv4 Address: This is the IP of the server without the port numbers.
    • Proxy Status: Disable this option. It should display a grey cloud with the text “DNS Only”.
    • TTL: Leave this on Auto.



  3. Next, we need to create another record. This time, an "SRV" record. Select “SRV” from the “Type” dropdown menu. You need to fill out the following:
    • Name: This is the first part of the domain you chose earlier. In this example, we use “mc”.
    • Service: Set the service name to _minecraft. This is very important!
    • Protocol: Leave this on TCP.
    • TTL: Leave this on Auto.
    • Priority: Set this to 0.
    • Weight: Set this to 0.
    • Port: This is the port of the server. In this example, we use port 28017.
    • Target: This is the full domain name you chose. In this example, the target is play.sparked.xyz.



  4. Your domain is now usable. Players can now connect to your Minecraft server using the domain.
Was this answer helpful? 29 Users Found This Useful (29 Votes)