Jump to content

How to connect a domain with a Minecraft server via Cloudflare


SwegBusterr
 Share

Recommended Posts

  • Community Manager

Found this really good simple guide from Sparked Host for people that I would like to share.

 

Using your domain to connect to your server looks more professional and encourages people to join.

Learn how to connect a domain with a Minecraft Server using Cloudflare.
 

How to connect a domain with a Minecraft Server with a dedicated IP (Cloudflare)



Login into the Cloudflare dashboard and select your domain

domain-1_1n98tfv.png

On the left-hand side, Click “DNS” and then click “Add Record”. Firstly, we need to create an “A” record. You will need to fill out the following:

Name - This is the option to either make it a subdomain or not. In this example, we will use “play”. This will make it so we have to connect using play.domain.com.
IPv4 Address - This is the IP of the server NOT including the port numbers.
Proxy Status - Uncheck this. It should be a gray cloud with the text “DNS Only”.
TTL - Leave this as auto.

Once complete, Click “Save”.

record1-1_y2mmrz.png

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

mc-1_1qv5cs9.png
 

How to connect a domain with a Minecraft Server without a dedicated IP (Cloudflare)



Please note that this method will not work with Minecraft Bedrock. You will need to include the port when connecting to the server, or get a dedicated IP for your Minecraft Bedrock server.
Login into the Cloudflare dashboard and select your domain

domain-1_1n98tfv.png

On the left-hand side, Click “DNS” and then click “Add Record”. Firstly, we need to create an “A” record. You will need to fill out the following:

Name - This is the option to either make it a subdomain or not. In this example, we will use “play”. This will make it so we have to connect using play.domain.com.
IPv4 Address - This is the IP of the server NOT including the port numbers.
Proxy Status - Uncheck this. It should be a gray cloud with the text “DNS Only”.
TTL - Leave this as auto.

record1-1_o35fnz.png

Now we have to create another record. This time an "SRV" record. Select “SRV” under the “Type” dropdown. You will need to fill out the following:

Name - This is the first part of the domain that you have chosen before. In this example, we are using “mc”.
Service - Set the service name to _minecraft. This is super important!
Protocol - Leave this as TCP.
TTL - Leave This as Auto.
Priority - Set this to 0.
Weight - Set this to 0.
Port - This is the port of the server. In this example, we will be using port 28017
Target - This is the whole domain name that you have chosen. In this example, the target is going to be play.sparked.xyz

The end result should look similar to the following screenshot:

srv-1_5yg9fp.png

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site you agree to the Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.