Skip to content
VDS · Apps and bots

Game servers besides Minecraft

How to host a CS2, Rust, Terraria, Valheim, or Palworld server on a VPS: tier requirements, installation via SteamCMD, ports, and common issues.

Updated August 23, 2026

Most game servers are installed from SteamCMD and run as a regular Linux service. Full root access on a VDS lets you run anything — the only limits are memory, the number of cores, and the fact that many games use a single core for their main loop.

What limits what

GameMemoryNote
Terraria, Factorio1–2 GBVDS-1 is enough
Valheim4–6 GBGrows with world size, VDS-2 or VDS-3
CS22–4 GBCore clock speed matters, not the number of cores
Rust12–16 GBVDS-4 and above, the disk fills up quickly with the map
Palworld8–16 GBNoticeable memory leak, needs regular restarts

The Ryzen 9 7950X delivers high clock speeds, so on the lower tiers memory, not the CPU, is usually the limiting factor.

Installing via SteamCMD

dpkg --add-architecture i386 && apt update
apt install -y steamcmd lib32gcc-s1
useradd -m -d /srv/game -s /bin/bash game

sudo -u game /usr/games/steamcmd \
  +force_install_dir /srv/game/server \
  +login anonymous \
  +app_update 896660 validate \
  +quit

Each game has its own app ID. Updating the server uses the same command: it downloads the changed files.

Service and ports

[Service]
User=game
WorkingDirectory=/srv/game/server
ExecStart=/srv/game/server/start.sh
Restart=on-failure
RestartSec=20

[Install]
WantedBy=multi-user.target

Game servers usually listen on UDP, not TCP — this is a common cause of “the server is running but not visible”:

ufw allow 2456:2458/udp
ss -ulpn | grep 2456

Get the public IPv4 address on the “Overview” tab of the /hosting/vds/m/<id> panel. There is no second address and no IPv6, so separate two servers of the same game by different ports, not by addresses.

Automatic restarts and backups

For games with memory leaks, set up a nightly restart:

0 6 * * * systemctl restart valheim

Copy saves on a schedule and move them off the machine — there are no automatic backups or snapshots:

tar czf /srv/backups/world-$(date +%F).tar.gz /srv/game/server/saves
rsync -az /srv/backups/ backup@other-host:/store/

The general approach is described in database backups — it is the same for save files.

Common mistakes

SymptomCause
Server not visible in the listUDP port is closed or the query port is not open
Crash after a few hoursMemory leak, no MemoryMax and no nightly restart
steamcmd: not foundThe package is installed from the multiverse or non-free section
Lag when the server is fullThe single-threaded loop has maxed out a core — only a higher clock speed helps
Out of spaceLogs and old saves; keep an eye on the disk usage ring in “Overview”

Running a game server as root is a bad idea: engines regularly get vulnerabilities in packet parsing. A separate system user for each game is a must.