How to Connect a Domain with a Minecraft Server with a Dedicated IP (Cloudflare)
- Log in to the Cloudflare dashboard and select your domain.
-
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.
- Once completed, click “Save”.
- 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.
- Log in to the Cloudflare dashboard and select your domain.
-
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.
- 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.
- Your domain is now usable. Players can now connect to your Minecraft server using the domain.