🚀 Get 25% off your first month on any plan! Use code MINT at checkout 🚀


← Go Back

How to Connect a Domain to Your Minecraft Server Using Cloudflare

Want to make your Minecraft server more professional and easier to remember? Setting up a custom domain for your Minecraft server lets players connect using an address like "play.yourdomain.com" instead of a complicated IP and port number. This step-by-step guide will show you exactly how to connect your domain to your Minecraft server using Cloudflare's DNS management, making your server more accessible and professional-looking.

Step 1: Get Your Minecraft Server Details

  1. Log into your MintServers game panel
  2. Click on "Subdomain" in the left sidebar
  3. On the right side, find the "How to connect a domain" column
  4. Note down the "Address (target)" and "Port" values

Step 2: Create an SRV Record in Cloudflare

  1. In your Cloudflare dashboard, select your domain
  2. Click on "DNS" in the left sidebar
  3. Click "Add Record"
  4. Select "SRV" as the record type
  5. For the "Name" field, enter _minecraft._tcp. (e.g., _minecraft._tcp.play if you want players to connect via play.yourdomain.com)
  6. Set "Priority" to 1
  7. Set "Weight" to 1
  8. Set "Port" to the port number from your server details
  9. Set "Target" to the Address (target) from your server details
  10. Click "Save"

Testing Your Domain Connection

After setting up your DNS records, it may take a few minutes to several hours for the changes to propagate. To test if your domain is properly connected:

  1. Open Minecraft Java Edition
  2. Go to Multiplayer → Add Server
  3. Enter your domain (e.g., play.yourdomain.com) in the Server Address field
  4. Click "Done" and try to connect to your server

Troubleshooting Common Issues

Can't Connect to Server Using Domain

  • Verify that your SRV record is correctly configured
  • Try flushing your DNS cache (ipconfig /flushdns on Windows)
  • Wait longer for DNS propagation (up to 24 hours)

SRV Record Not Working

  • Double-check the format of your SRV record name (_minecraft._tcp.subdomain)
  • Verify that your target is correctly formatted
  • Ensure your Minecraft server is running and accessible via IP

By following this guide, you've successfully connected your domain to your Minecraft server using Cloudflare. Players can now join your server using your custom domain, making it more professional and easier to remember. If you encounter any issues, double-check your DNS settings and ensure your server is running properly.

← Go Back

The Last Minecraft Hosting You Will Ever Need!

Unlimited Slots, Unlimited RAM, One-Click Mods & Plugins