Articles on: FiveM

How to create a custom connect domain for FiveM

In this tutorial we will explain how to get yourself a custom connect domain/ip like: play.example.com


  1. Create an account at Cloudflare


  1. Click on Buy domains


  1. Click on Register


  1. Enter a name for the domain, we are going to claim tutorialvibegames2


  1. Now click on Purchase at the domain of your liking, we are going to claim .win for this tutorial


  1. Select the duration, and click on Continue


  1. Now you will get a few fields you have to fill with personal information, once done go to the next step


  1. At the last field you are able to pay with PayPal or creditcard, for PayPal click on the PayPal button


  1. Then fill in your details again and click on Confirm


  1. Once done, head over to the DNS settings of your domain


  1. Now click on Add record and create an A record, the name should be play or something else and the IPv4 address should be the IP of your FiveM server without the port. Once done, click on Save


  1. Now we will create another record, click on the Add record button. Now add a new record with the following settings:

Type: SRV

Service: _cfx

Protocol: UDP

TTL: Auto

Priority: 1

Weight: 1

Port: The port of your FiveM server, in my case 3000

Target: play. YOURDOMAIN.COM, in my case play.tutorialvibegames2.win because we claimed tutorialvibegames2.win and in step 11 we decided to go with play.

Once again click on Save


If done correctly, you should be able to connect to your FiveM server with your new domain! (play.tutorialvibegames2.win for this example)

Updated on: 03/12/2021

Was this article helpful?

Share your feedback

Cancel

Thank you!