🇩🇪 DE 🇬🇧 EN
NexoraHost / Docs home
Popular searches:Minecraft won't startFiveM OneSyncSSL errorFTP connection502 Bad Gateway

How to Install a FiveM Server with txAdmin?

Quick answer: This guide solves a specific server problem step by step – not just theory. For connection, startup or performance issues see troubleshooting below and related guides.

This guide shows you step by step how to set up a FiveM server with txAdmin – both on Linux and Windows. txAdmin is the official FiveM web interface that lets you start, configure and manage your server.

Requirements

Linux or Windows?

Linux is recommended for FiveM servers. It uses fewer resources, is free and runs more stable. Many server operators use Ubuntu or Debian. Windows is an alternative if you use certain scripts that only run on Windows or don't have Linux knowledge.

Step 1: Download and extract server files

Linux

  1. Open a terminal and create a new folder for your server:
    mkdir -p ~/fxserver/server
  2. Navigate to the newly created folder:
    cd ~/fxserver/server
  3. Download the latest server files:
    wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/latest/fx.tar.xz
  4. Extract the downloaded archive:
    tar -xvf fx.tar.xz
  5. Delete the archive to save disk space:
    rm fx.tar.xz

Windows

  1. Go to the official FiveM server build page: runtime.fivem.net/artifacts/fivem/build_server_windows/master/
  2. Download the latest recommended build (server.7z)
  3. Create a new folder, e.g. C:\FXServer\server
  4. Extract the downloaded server.7z with 7-Zip or WinRAR into this folder

Step 2: Create a FiveM license key

  1. Open the Cfx.re portal: portal.cfx.re/servers/registration-keys
  2. Log in with your Cfx.re account (if you don't have one, register for free)
  3. Click "Generate key" and enter a name (e.g. "My RP Server")
  4. Click "Generate" and copy the created key – you'll need it later

Step 3: Start the server and open txAdmin

Linux

  1. Navigate to your server folder:
    cd ~/fxserver/server
  2. Start the server:
    ./run.sh

Windows

  1. Open the folder C:\FXServer\server
  2. Double-click FXServer.exe

Your browser will automatically open with txAdmin. If not, open http://localhost:40120.

A 4-digit PIN will appear in the console – enter this in txAdmin.

Step 4: Link account and register server

  1. Click "Link Account"
  2. Log in with your Cfx.re account
  3. Click "Yes, Allow" to authorize txAdmin
  4. Create a secure password for your txAdmin account (at least 8 characters)
  5. Accept the license terms and click "Create Master Account"

Step 5: Choose server name and deployment type

  1. Enter a name for your server – this is how it appears in the server list
  2. Select "Popular Recipes" as the deployment type
  3. For beginners, "CFX Default FiveM" is recommended – this is an empty server without scripts
  4. Leave the Data Location path unchanged and click "Save"
  5. Click "Go to Recipe Deployer"

Step 6: Run the Recipe Deployer

  1. Step 1 – Review Recipe: Check the summary and click "Next"
  2. Step 2 – Input Parameters: Paste your FiveM license key from Step 2
  3. Click "Run Recipe" and wait for the process to complete – this can take a few minutes
  4. Click "Next"

Step 7: Configure server.cfg

In server.cfg you can adjust the most important settings:

Step 8: Start the server

  1. Scroll down and click "Save & Run Server"
  2. The server starts – wait until the status shows "Online"
  3. If the server doesn't start, check the console for error messages

Step 9: Connect to the server

  1. Launch the FiveM client on your PC
  2. Click "Connect to [Server-Name] on LAN" if you're playing locally
  3. For external players: Share your public IP address and port (e.g. 123.123.123.123:30120)
  4. Press F8 in-game and type tx to open txAdmin

Step 10: Open firewall ports

So other players can reach your server, port 30120 must be open.

Linux (UFW)

sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp

Windows Firewall (PowerShell as Administrator)

New-NetFirewallRule -DisplayName "FiveM Server" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM Server" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow

Then forward port 30120 (TCP and UDP) in your router to your server's local IP address.

Step 11: Set up automatic start with systemd (Linux, optional)

So your server starts automatically after a reboot:

  1. Create a systemd service file:
    sudo nano /etc/systemd/system/fivem.service
  2. Add the following content:
    [Unit]
    Description=FiveM Server
    After=network.target
    
    [Service]
    Type=simple
    User=fivem
    WorkingDirectory=/home/fivem/fxserver/server
    ExecStart=/home/fivem/fxserver/server/run.sh
    Restart=on-failure
    RestartSec=10
    
    [Install]
    WantedBy=multi-user.target
  3. Save and close (CTRL+X, then Y, then Enter)
  4. Enable and start the service:
    sudo systemctl daemon-reload
    sudo systemctl enable fivem
    sudo systemctl start fivem

txAdmin features overview

Next steps

NexoraHost

Order your game server

Minecraft, ARK, FiveM & 24+ games – 1-click install, mods allowed, from €4.99/mo.

nexorahost.com · Maincubes FRA01 · 1 Tbit/s DDoS · 99,9 % Uptime