How to Set Up Your FiveM RDP
Complete beginner-friendly guide to preparing your PrimeFilter Windows RDP and running your first FiveM server.
Before You Begin
You need your PrimeFilter RDP IP, username, password, and a Cfx.re account for the FiveM license key. Do not share passwords or license keys publicly.
Connect to Your RDP
Open Microsoft Remote Desktop and log in with the service details from PrimeFilter.
- On your Windows PC, press
Win + R. - Type
mstsc, then press Enter. - Enter the RDP IP supplied by PrimeFilter.
- Use your supplied username and password. Example username:
Administrator.
Prepare Windows
Keep Windows secure, organized, and ready for server files.
- Run Windows Update if updates are pending.
- Check that the date, time, and timezone are correct.
- Create these folders:
C:\FiveM\,C:\FiveM\server\, andC:\FiveM\server-data\. - Keep Windows Firewall enabled. You will open only the required ports later.
Install Required Programs
Download software only from official sources.
Install and Configure MariaDB
Use a local database and a dedicated FiveM user.
- Install MariaDB using the Windows MSI installer.
- Set a strong root password and keep it private.
- Create a database named
fivem. - Create a dedicated user named
fivemwith passwordYOUR_STRONG_DATABASE_PASSWORD. - Use
127.0.0.1in your FiveM connection string when MariaDB is on the same RDP.
Download FXServer
Use the current recommended Windows artifact from Cfx.re.
- Open the official Windows artifacts page.
- Download the recommended build. Do not rely on an old version number from a tutorial.
- Extract the archive into
C:\FiveM\server\. - Open the folder and confirm
FXServer.exeexists.
Download Server Data
Clone the official base server data into a separate folder.
- Open Command Prompt.
- Run the command below.
- Confirm
C:\FiveM\server-data\resourcesexists after the clone finishes.
git clone https://github.com/citizenfx/cfx-server-data.git C:\FiveM\server-data
Start FXServer and txAdmin
txAdmin is included with FXServer and opens in your browser for first setup.
- Open
C:\FiveM\server\. - Run
FXServer.exe. - Read the console for the txAdmin URL and setup PIN.
- Open the txAdmin URL in your browser. The port may vary, but PrimeFilter commonly uses
40120 TCPwhen configured that way.
Complete txAdmin Setup
Use txAdmin to create or deploy the server configuration.
- Open txAdmin and enter the setup PIN if requested.
- Link or log in with Cfx.re if txAdmin asks.
- Create a server profile and choose a recipe/template.
- Set the server name and data folder.
- Enter your Cfx.re license key and database details.
- Run the recipe and wait until deployment completes.
Configure server.cfg
Edit the main FiveM configuration file with safe placeholders.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_hostname "My PrimeFilter FiveM Server"
sets sv_projectName "My PrimeFilter FiveM Server"
sets sv_projectDesc "Hosted on PrimeFilter"
set mysql_connection_string "mysql://fivem:YOUR_STRONG_DATABASE_PASSWORD@127.0.0.1/fivem"
sv_licenseKey "YOUR_CFX_LICENSE_KEY"
sv_maxclients 48
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
endpoint_add_tcpandendpoint_add_udpcontrol the public FiveM game port.mysql_connection_stringconnects resources to MariaDB on localhost.sv_licenseKeymust be your own key from Cfx.re.
Configure Firewall and Ports
Open only the ports your server needs.
| Service | Protocol | Port | Required |
|---|---|---|---|
| FiveM Game | TCP | 30120 | Yes |
| FiveM Game | UDP | 30120 | Yes |
| txAdmin | TCP | 40120 | For remote txAdmin access |
| MariaDB | TCP | 3306 | No - keep private/local unless required |
- Open Windows Defender Firewall with Advanced Security.
- Go to Inbound Rules, then choose New Rule.
- Select Port, choose TCP or UDP, enter the port, and allow the connection.
- Name the rules clearly, for example
FiveM TCP 30120andFiveM UDP 30120.
Start the Server
Start FXServer from txAdmin or from the console and confirm it boots cleanly.
- FXServer running
- Database connected
- No server.cfg errors
- FiveM port listening
- txAdmin accessible if enabled
- Server visible or connectable
Connect to the Server
Use FiveM direct connect or the server browser.
- Open FiveM on your gaming PC.
- Press F8 to open the console.
- Use the direct connect command below.
- You can also search the server browser once listing is configured.
connect YOUR_SERVER_IP:30120
Basic Troubleshooting
Open the issue that matches what you see.
- Check FXServer is running.
- Check TCP and UDP port 30120.
- Check Windows Firewall inbound rules.
- Check server.cfg and license key.
- Confirm the public endpoint is correct.
- Check txAdmin is running.
- Check the correct txAdmin port.
- Check Windows Firewall.
- Use the browser URL shown in the FXServer console.
- Check MariaDB service is running.
- Check the database, username, and password.
- Use
127.0.0.1when FiveM and MariaDB are on the same RDP. - Do not use the MariaDB root account for FiveM resources.
- Check the FiveM process is running.
- Check TCP and UDP firewall rules.
- Confirm the port is 30120 or the custom port you configured.
- Confirm you are connecting to the protected public IP assigned to your service.
Need Help?
If you're using a PrimeFilter RDP and are having trouble setting up your FiveM server, our support team can help.