Enterprise hosting · Built for gamers
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
- Operating system: Linux (Ubuntu 20.04/22.04, Debian 11/12) or Windows 10/11 (64-bit) / Windows Server 2019/2022
- CPU: 4 cores at 3.0 GHz+ recommended
- RAM: At least 8 GB (16 GB recommended for more players)
- Storage: 20 GB free SSD storage
- Network: Port 30120 TCP/UDP open
- Cfx.re account: Register for free at cfx.re
- FiveM license key: Available in the Cfx.re Keymaster
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
- Open a terminal and create a new folder for your server:
mkdir -p ~/fxserver/server - Navigate to the newly created folder:
cd ~/fxserver/server - Download the latest server files:
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/latest/fx.tar.xz - Extract the downloaded archive:
tar -xvf fx.tar.xz - Delete the archive to save disk space:
rm fx.tar.xz
Windows
- Go to the official FiveM server build page: runtime.fivem.net/artifacts/fivem/build_server_windows/master/
- Download the latest recommended build (server.7z)
- Create a new folder, e.g.
C:\FXServer\server - Extract the downloaded server.7z with 7-Zip or WinRAR into this folder
Step 2: Create a FiveM license key
- Open the Cfx.re portal: portal.cfx.re/servers/registration-keys
- Log in with your Cfx.re account (if you don't have one, register for free)
- Click "Generate key" and enter a name (e.g. "My RP Server")
- Click "Generate" and copy the created key – you'll need it later
Step 3: Start the server and open txAdmin
Linux
- Navigate to your server folder:
cd ~/fxserver/server - Start the server:
./run.sh
Windows
- Open the folder
C:\FXServer\server - 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
- Click "Link Account"
- Log in with your Cfx.re account
- Click "Yes, Allow" to authorize txAdmin
- Create a secure password for your txAdmin account (at least 8 characters)
- Accept the license terms and click "Create Master Account"
Step 5: Choose server name and deployment type
- Enter a name for your server – this is how it appears in the server list
- Select "Popular Recipes" as the deployment type
- For beginners, "CFX Default FiveM" is recommended – this is an empty server without scripts
- Leave the Data Location path unchanged and click "Save"
- Click "Go to Recipe Deployer"
Step 6: Run the Recipe Deployer
- Step 1 – Review Recipe: Check the summary and click "Next"
- Step 2 – Input Parameters: Paste your FiveM license key from Step 2
- Click "Run Recipe" and wait for the process to complete – this can take a few minutes
- Click "Next"
Step 7: Configure server.cfg
In server.cfg you can adjust the most important settings:
- endpoint_add_tcp / endpoint_add_udp: Default port is 30120 – only change if necessary
- sv_hostname: Name in the server list (e.g. "My RP Server | Custom Cars | Jobs")
- sv_maxclients: Maximum number of players (default 48, reduce to 32 on weaker hardware)
- tags: Tags like "roleplay", "racing", "freeroam", "pvp" so players can find your server
Step 8: Start the server
- Scroll down and click "Save & Run Server"
- The server starts – wait until the status shows "Online"
- If the server doesn't start, check the console for error messages
Step 9: Connect to the server
- Launch the FiveM client on your PC
- Click "Connect to [Server-Name] on LAN" if you're playing locally
- For external players: Share your public IP address and port (e.g. 123.123.123.123:30120)
- Press F8 in-game and type
txto 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:
- Create a systemd service file:
sudo nano /etc/systemd/system/fivem.service - 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 - Save and close (CTRL+X, then Y, then Enter)
- Enable and start the service:
sudo systemctl daemon-reload sudo systemctl enable fivem sudo systemctl start fivem
txAdmin features overview
- Dashboard: Server status, CPU and RAM usage, player list
- CFG Editor: Edit your server.cfg directly in the browser
- Resources: Manage and start resources
- Console: Live console with all logs
- Admins: Assign admin rights to other players
- Settings: Server settings and updates
Next steps
- Add resources and scripts (ESX, QBCore or custom scripts)
- Optimize server performance
- Set up backups
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