Create a FiveM server on a VPS
You run your own FiveM server for GTA V on a VPS with FXServer and the txAdmin control panel. You download the server, link a free licence key from Cfx.re and open port 30120. Players can then connect. On a VPS your server stays online 24/7, even when your own computer is switched off.
What do you need?
- A VPS with Windows Server or Linux (Ubuntu or Debian).
- A free account on portal.cfx.re for your licence key.
- For players: their own copy of GTA V and the FiveM client.
Which VPS should you choose?
For a small server with friends, 2 cores and 4 GB of memory are enough. If you run a roleplay server with many scripts and a database, such as ESX or QBCore, choose 8 GB or more. If you prefer working with a desktop, choose a Windows VPS. If you are comfortable with the terminal, a Linux VPS is a good choice.
Install a FiveM server on Windows
- Connect to your VPS via Remote Desktop.
- Open the FiveM artifacts page (runtime.fivem.net) and download the latest recommended Windows build (server.7z).
- Extract the file to a folder, for example
C:\FXServer\server. - Start
FXServer.exe. txAdmin opens in your browser athttp://localhost:40120. - Follow the wizard: link your Cfx.re account, choose a recipe (for example the default server, ESX or QBCore) and enter your licence key.
- Open port 30120 (TCP and UDP) in the Windows Firewall. Read how in Open a port in the Windows Firewall.
Install a FiveM server on Linux
Log in via SSH and create a folder for the server:
mkdir -p ~/fxserver && cd ~/fxserver On the artifacts page, copy the link to the latest recommended Linux build (fx.tar.xz), then download and extract it:
wget <link-naar-fx.tar.xz>
tar xf fx.tar.xz Open the ports in the firewall:
ufw allow 30120/tcp
ufw allow 30120/udp
ufw allow 40120/tcp Start the server in a screen session, so it keeps running after you log out:
screen -S fivem
./run.sh Then open http://IP-van-je-VPS:40120 in your browser and follow the txAdmin wizard.
Secure your server
- Use a strong password for txAdmin and only give trusted administrators access.
- Preferably allow port 40120 (txAdmin) only from your own IP address. Port 30120 must stay open for players.
- Keep FXServer up to date with the latest recommended build and only download scripts from trusted sources.
Frequently asked questions
Is a FiveM server free?
The server software and the licence key are free. For more player slots or extra features, Cfx.re offers paid subscriptions. At Xitens you only pay for the VPS.
Do players need GTA V?
Yes. Every player needs their own legal copy of GTA V and installs the FiveM client.
Can I use a database for ESX or QBCore?
Yes. Install MariaDB or MySQL on your VPS and link it to your server in txAdmin. Allow for extra memory.
Related articles
Fast NVMe VPS for your apps
NVMe storage with high IOPS and low latency for Docker, databases, AI models and self-hosted apps, in the data centre in Amsterdam.