Loading…
Loading documentation...
Install a FiveM or other game server manually on a Servers Are Up Linux VPS.
Install a FiveM or other game server manually on a Servers Are Up Linux server. For a ready-made game server instead, see the game servers catalog: Minecraft Java, Rust, ARK: Survival Evolved and more are set up automatically.
| Component | Recommended |
|---|---|
| Server | 4 vCPU / 8 GB RAM or more |
| OS | Ubuntu 24.04 |
| Storage | 50 GB+ SSD |
| Network | A port forward for each game port (Network > Public access) |
| FiveM | A server license key from the Cfx.re portal (portal.cfx.re) |
What you can create today: Buy any product marked Available in checkout and it is set up automatically; products marked Coming soon have no checkout yet. The
sauCLI does not create instances.
Turn on public SSH on the server's page and copy the command from its How to connect card. Root cannot sign in, so start a root shell for the steps below:
ssh sauuser@SERVER_ADDRESS -p SSH_PORT
sudo -i
The server runs as its own user. Cfx.re publishes which Linux build it recommends, and this downloads that one:
apt update
apt install -y curl xz-utils tmux
adduser --disabled-password --gecos "" fivem
sudo -u fivem mkdir -p /home/fivem/server
cd /home/fivem/server
URL=$(curl -fsSL https://changelogs-live.fivem.net/api/changelog/versions/linux/server \
| python3 -c 'import json, sys; print(json.load(sys.stdin)["recommended_download"])')
sudo -u fivem curl -fsSL -o fx.tar.xz "$URL"
sudo -u fivem tar xf fx.tar.xz
rm fx.tar.xz
Start it in a tmux session, so it keeps running after you sign out. txAdmin, FiveM's web panel, starts on port 40120 and prints a PIN for its setup:
sudo -u fivem tmux new-session -d -s fivem -c /home/fivem/server ./run.sh
sleep 20
# The PIN is the line under "Use the PIN below"
sudo -u fivem tmux capture-pane -p -t fivem | grep -A 1 "PIN below"
Attach to the console with sudo -u fivem tmux attach -t fivem, and leave it with Ctrl+B, then D.
A Linux server has no public address of its own. On Network > Public access, under Port forwards, click Add a forward for each port, with an External port from your environment's block (the form names the range):
| Forward | Protocol | Target port |
|---|---|---|
| Game (connections) | TCP | 30120 |
| Game (traffic) | UDP | 30120 |
| txAdmin panel | TCP | 40120 |
Give the TCP and UDP game forwards the same external port. Put only your own address under Who can connect on the txAdmin forward. A forward opens its own firewall rule, so you add none for it.
http://ADDRESS:PORT, the txAdmin forward's Connect to valuePlayers connect with connect ADDRESS:PORT in the FiveM console (F8), using the game forward's Connect to value.
The same steps work for other game servers: install the server, then add a forward for each port it listens on.
Servers > [your server] > Monitoring shows its CPU, memory and network use.
Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.