How to Connect Your Domain to a FiveM Server ​
You can make your FiveM 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 FiveM server (you can find these in the dashboard of your server)
Connect with subdomain (e.g. play.yourdomain.com) ​
Open DNS settings
Open the management of your domain and click on DNS Settings.Create A record
Create a new record with type A:Field Value Type AName playTarget Your server IP address Create SRV record
Create a new record with type SRV so FiveM can find the correct port:Name:
Field Value Service Name _cfxProtocol UDPName playTarget:
Field Value Priority 0Weight 5Port Your server port Target play.yourdomain.comTest connection
Wait a few minutes for the DNS changes to take effect, then connect in-game usingplay.yourdomain.com.
Connect without subdomain (e.g. yourdomain.com) ​
Open DNS settings
Open the management of your domain and click on DNS Settings.Create A record
Create a new record with type A:Field Value Type AName @Target Your server IP address Create SRV record
Create a new record with type SRV:Name:
Field Value Service Name _cfxProtocol UDPName leave empty Target:
Field Value Priority 0Weight 5Port Your server port Target yourdomain.comTest connection
Wait a few minutes for the DNS changes to take effect, then connect in-game usingyourdomain.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 30120, the A record alone is sufficient. The SRV record is only needed if your server uses a different port.