Use a Custom Domain or Subdomain for Minecraft Server
In this guide, we will step-by-step show you how to use your own domain or subdomain instead of using one we provide. Using your own domain or subdomain adds a personal touch to your Minecraft server, making it feel more uniquely yours. It also gives you greater control over your server's online presence, potentially boosting recognition and accessibility among your community.
Login to the Dashboard
- See our login instructions guide over here.
- Go to your Inventory.
- Once in your inventory, you will see your list of servers.
Select your Minecraft server
- Click the Manage button of your Minecraft server that you wish to use for your custom IP.
Head over to Ports tab
- Click the Ports tab.
- Click Domain Hub button and scroll down to Subdomains.
- If you do not wish to keep an alternative Server address join method, you may use the Delete button (🗑️) to remove them.
- Take note of the IP and Port as you’ll need them for the next step.
Head over to Cloudflare
- Navigate to your Cloudflare dashboard and login.
- Select the Domain you wish to use.
Creating an “A record”
- An A record creates an alias (like how you give a phone number a nickname to remember them easier) from the IP to whatever Subdomain/domain you set it to.
- If your Port is 25565 then you’re basically done since Minecraft’s default port is 25565.
- 1 Click on DNS then Records.
- 2 Click on Add Record, which should give a similar input as shown in the image above.
- 3 Select Type to be A.
- 4 This can be whatever Subdomain you want or none, which makes joining be set to
Domain.com
. In this Guide, we useplay
as it is commonly used. - 5 Target IPV4 Address is the IP of your server as noted down earlier.
- At the end, you can create a comment, which is useful if you have multiple servers and don’t want to forget which one is which.
Creating A SRV Record
- An SRV record lets you specify what port is to be used for a specific service.
- In this case, we want Minecraft to know what port your server is using when they use the server address.
- Make sure you’re using your own port and the A Record name used, otherwise this will not work.
- An image is provided below to help demonstrate the steps.
- 1 Click on Type then select SRV.
- 2 Under Name put
_minecraft._tcp
. If you’re using a subdomain you need to end it with a.your_subdomain
, for example_minecraft._tcp.play
as this guide is usingplay.ultraservers.com
. - 3 & 4 For these values, you mostly will just be using the defaults.
- Protocol: Keep protocol the same. Minecraft relies on TCP.
- TTL: Keep Time To Live set to Automatic.
- Priority: Set it to 0, unless you use other SRV services, then this does not matter.
- Weight: Set to 0, as mentioned above.
- 5 Input the port that users join the server with.
- 6 Input the Server address you expect players to join with. For example,
play.ultraservers.com
this should match the name used in your A Record.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server