Domains & web

A domain for your game server

Let players join with play.yourdomain.com instead of an IP and port.

A subdomain is easier to remember than an IP and stays the same if the server moves. This guide uses Cloudflare, but the steps are the same with any DNS provider.

  1. Find the server IP and port

    They are on the server page in the game panel. You will use them in the next steps.

  2. Create the A record

    In Cloudflare open DNS → Records and add:

    TypeNameContentProxy
    AplaySERVER_IPDNS only (grey cloud)

    The proxy must be off. Cloudflare only proxies web traffic, not game traffic.

  3. Add the port if needed

    If the server uses the game's default port, you are done: players type just play.yourdomain.com. If the port is different, pick your game below.

The port, by game

Minecraft Java reads the port from an SRV record, so players do not need to type it. Add in Cloudflare:

FieldValue
TypeSRV
Name_minecraft._tcp.play
Priority0
Weight5
Portyour server port, for example 25570
Targetplay.yourdomain.com

Players join with play.yourdomain.com.

Troubleshooting

The name does not work, but the IP does

Check that the A record is set to DNS only. With the orange cloud, game traffic never reaches the server.

Minecraft still asks for the port

Check the record with nslookup -type=SRV _minecraft._tcp.play.yourdomain.com. The name must start exactly with _minecraft._tcp., and the target must be a name with an A record, not an IP.