Skip to content

How to Connect Your Domain to a Minecraft Server ​

You can make your Minecraft server reachable via your own domain, so players can connect using e.g. play.yourdomain.com or yourdomain.com — instead of an IP address.

Requirements ​

  • A domain with EmeraldHost
  • The IP address and port of your Minecraft server (you can find these in the dashboard of your server)

Connect with subdomain (e.g. play.yourdomain.com) ​

  1. Open DNS settings
    Open the management of your domain and click on DNS Settings.

  2. Create A record
    Create a new record with type A:

    FieldValue
    TypeA
    Nameplay
    TargetYour server IP address
  3. Create SRV record
    Create a new record with type SRV so Minecraft can find the correct port:

    Name:

    FieldValue
    Service Name_minecraft
    ProtocolTCP
    Nameplay

    Target:

    FieldValue
    Priority0
    Weight5
    PortYour server port
    Targetplay.yourdomain.com
  4. Test connection
    Wait a few minutes for the DNS changes to take effect, then connect in-game using play.yourdomain.com.

Connect without subdomain (e.g. yourdomain.com) ​

  1. Open DNS settings
    Open the management of your domain and click on DNS Settings.

  2. Create A record
    Create a new record with type A:

    FieldValue
    TypeA
    Name@
    TargetYour server IP address
  3. Create SRV record
    Create a new record with type SRV:

    Name:

    FieldValue
    Service Name_minecraft
    ProtocolTCP
    Nameleave empty

    Target:

    FieldValue
    Priority0
    Weight5
    PortYour server port
    Targetyourdomain.com
  4. Test connection
    Wait a few minutes for the DNS changes to take effect, then connect in-game using yourdomain.com.

Note

DNS changes can take up to 24 hours to propagate worldwide. However, they are usually available within a few minutes.

Tip

If your server uses the default port 25565, the A record alone is sufficient. The SRV record is only needed if your server uses a different port.