EN · $ USD
Game and Bot VDS Guides

How to Set Up a Game Server on a VDS with SteamCMD

7 min read Updated: OyunBulut technical team

In short

SteamCMD is Valve's command-line Steam client, used to download and update dedicated game server files. After installing SteamCMD on your VDS, you pick the target folder with force_install_dir, sign in with login anonymous, and run app_update APPID validate to download Rust (258550), Valheim (896660) or ARK (376030). DayZ (223350) requires signing in with a Steam account that owns the game.

In this guide
  1. What Is SteamCMD and Why Use It on a VDS?
  2. SteamCMD App ID List by Game
  3. Installing SteamCMD on a Linux VDS (Ubuntu)
  4. Downloading Game Files with app_update
  5. One-Command Update Script
  6. Auto-Start and Crash Restart with systemd
  7. SteamCMD on a Windows VDS
  8. Opening Ports and Security
  9. Common SteamCMD Errors
  10. Next Step: Choose the Right VDS

Installing SteamCMD is the first step to running a dedicated server for Steam games like Rust, ARK, Valheim and DayZ on a VDS. You install SteamCMD and pass the game's server application number (App ID) to the app_update command; the files download, and the same command keeps them updated. This guide walks you through installation on Linux and Windows VDS, App IDs for each game, a one-command update script, and making your server start automatically when the VDS reboots.

What Is SteamCMD and Why Use It on a VDS?

SteamCMD is Valve's command-line Steam client with no graphical interface. It doesn't download the game itself, but the dedicated server package the developer publishes. On managed game panels, the panel handles this in the background; on your own VDS, you're in full control: you decide which version to install, when to update and which launch parameters to use.

That flexibility is ideal for users who want root access and dedicated resources. OyunBulut Ryzen game VDS plans come with KVM virtualization, root access and NVMe storage, so you can install everything SteamCMD needs yourself.

SteamCMD App ID List by Game

Every dedicated server has an App ID that differs from the game's store ID. If you use the wrong number, SteamCMD either throws an error or downloads nothing.

GameServer App IDLoginNotes
Rust258550anonymousLinux and Windows
ARK: Survival Evolved376030anonymousLinux and Windows
ARK: Survival Ascended2430930anonymousOfficial server ships as a Windows binary
Valheim896660anonymousLinux and Windows
DayZ223350Steam accountRequires an account that owns the game
Palworld2394010anonymousLinux and Windows
Garry's Mod4020anonymousLinux and Windows

Installing SteamCMD on a Linux VDS (Ubuntu)

The steps below are for Ubuntu. On Debian, you need to add the non-free component to your repositories; the process is otherwise the same.

  1. Create a separate user. Never run a game server as root; if a vulnerability is found, an attacker gets access to the entire system.
    sudo adduser --disabled-password --gecos "" steam
  2. Enable the 32-bit architecture and the multiverse repository, then install SteamCMD. You'll be asked to accept the Steam license agreement during installation.
    sudo add-apt-repository multiverse
    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install steamcmd
  3. Switch to the steam user and let SteamCMD update itself.
    sudo -iu steam
    /usr/games/steamcmd +quit

If you'd rather not use the package manager, you can download Valve's archive directly:

mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
./steamcmd.sh +quit

With this method, if a 32-bit library is missing, install it with sudo apt install lib32gcc-s1.

Downloading Game Files with app_update

The basic command pattern is the same for every game. One key rule: +force_install_dir must always come before +login; otherwise SteamCMD shows a warning and the files may end up in the wrong place.

# Rust
/usr/games/steamcmd +force_install_dir /home/steam/rust +login anonymous +app_update 258550 validate +quit

# Valheim
/usr/games/steamcmd +force_install_dir /home/steam/valheim +login anonymous +app_update 896660 validate +quit

# ARK: Survival Evolved
/usr/games/steamcmd +force_install_dir /home/steam/ark +login anonymous +app_update 376030 validate +quit

The validate parameter checks the integrity of every file. Use it on the first install and whenever you suspect corrupted files; leave it out for routine updates and the process gets noticeably faster.

DayZ: Signing In with a Steam Account

DayZ server files can't be downloaded with an anonymous login. You sign in with a Steam account that owns the game; the first time, you'll be asked for your password and a Steam Guard code, and the session is remembered after that. It's safer to use a separate account just for the server rather than your main account.

/usr/games/steamcmd +force_install_dir /home/steam/dayz +login STEAM_KULLANICI_ADI +app_update 223350 validate +quit

Games like Rust and ARK can take up tens of GB; if you plan to add mods and maps, budget disk space from the start. For example, the OB-R9-6 Ryzen VDS with 6 vCPU, 12 GB RAM and 80 GB NVMe is a balanced starting point for a single mid-size Rust or ARK server.

Downloading Steam Workshop Mods

SteamCMD can download Workshop mods as well as server files. For this, you use the game's own App ID instead of the server App ID, plus the mod's Workshop ID. For example, for DayZ (game App ID 221100):

/usr/games/steamcmd +login STEAM_KULLANICI_ADI +workshop_download_item 221100 MOD_ID validate +quit

Downloaded files land in steamapps/workshop/content/221100/MOD_ID under the SteamCMD folder; copy them to your server folder and add them to your launch parameters. In DayZ, don't forget to copy the key from the mod's keys folder into the server's keys folder.

One-Command Update Script

When a game update drops, clients can't connect to a server running the old version. Instead of memorizing a long command for each game, use a small script:

#!/usr/bin/env bash
# /home/steam/guncelle.sh
set -e
case "$1" in
  rust)    APP=258550; DIR=/home/steam/rust ;;
  valheim) APP=896660; DIR=/home/steam/valheim ;;
  ark)     APP=376030; DIR=/home/steam/ark ;;
  *) echo "Kullanim: $0 rust|valheim|ark"; exit 1 ;;
esac
/usr/games/steamcmd +force_install_dir "$DIR" +login anonymous +app_update "$APP" +quit
chmod +x /home/steam/guncelle.sh
/home/steam/guncelle.sh rust

Don't update while the server is running. Stop the server first, update, then start it again. The systemd setup below automates this.

Auto-Start and Crash Restart with systemd

systemd is the service manager on Linux. When you define your game server as a service, it starts automatically when the VDS reboots, restarts if it crashes, and checks for updates before every start. Here's an example /etc/systemd/system/rust.service file for Rust:

[Unit]
Description=Rust Dedicated Server
After=network-online.target
Wants=network-online.target

[Service]
User=steam
WorkingDirectory=/home/steam/rust
Environment=LD_LIBRARY_PATH=/home/steam/rust/RustDedicated_Data/Plugins/x86_64
ExecStartPre=/home/steam/guncelle.sh rust
ExecStart=/home/steam/rust/RustDedicated -batchmode +server.port 28015 +server.identity "ana" +server.maxplayers 50 +server.worldsize 3500 +server.seed 12345 +rcon.port 28016 +rcon.password "GucluBirSifre" +rcon.web 1
Restart=on-failure
RestartSec=15
TimeoutStartSec=900

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now rust
journalctl -u rust -f

TimeoutStartSec is set high so systemd doesn't mark the service as failed while an update is downloading. For Valheim, you can use the same setup by pointing ExecStart at the start_server.sh file in the install folder; edit the server name, world name and password inside it first.

Weekly Automatic Updates

Most game updates ship on predictable days. Restarting the service weekly also triggers an update, thanks to ExecStartPre. Add this line to the root crontab (sudo crontab -e):

0 5 * * 4 systemctl restart rust

This example restarts the server every Thursday at 05:00. Use RCON or a Discord announcement to warn your players in advance.

SteamCMD on a Windows VDS

  1. Create a C:\steamcmd folder and extract Valve's steamcmd.zip archive into it.
  2. In PowerShell, switch to that folder and run it for the first time: .\steamcmd.exe +quit
  3. Download the game files:
    C:\steamcmd\steamcmd.exe +force_install_dir C:\oyunlar\rust +login anonymous +app_update 258550 validate +quit
  4. Put your launch commands in a baslat.bat file: the first line runs the update, the second starts the server.
  5. In Task Scheduler, create a task that runs this file with the "When the computer starts" trigger.

For games that only offer a Windows server, such as ARK: Survival Ascended, this is the only option.

Opening Ports and Security

If your server is running but doesn't show up in the server list, the firewall is the first suspect. On Linux, use ufw to open only the ports you need:

sudo ufw allow 22/tcp
sudo ufw allow 28015/udp     # Rust game port
sudo ufw allow 28016/tcp     # Rust RCON (web RCON)
sudo ufw allow 2456:2457/udp # Valheim
sudo ufw allow 2302/udp      # DayZ
sudo ufw enable

Rather than opening the RCON port to everyone, it's safer to allow only your own IP address. For SSH keys, disabling root login and other hardening steps, see Game VDS Security: SSH, RDP and Firewall Settings. For Rust-specific server settings, continue with How to Set Up a Rust Server.

Common SteamCMD Errors

  • ERROR! Failed to install app (No subscription): The App ID is wrong, or the game doesn't allow anonymous downloads. For games like DayZ, sign in with an account.
  • Disk write failure: The disk is full or folder permissions are wrong. Check free space with df -h and ownership with chown -R steam:steam /home/steam.
  • Stuck at Update state 0x...: Run the command again; if the problem persists, try it with validate.
  • Server starts but the client version doesn't match: The server hasn't been updated; restart the service.

Next Step: Choose the Right VDS

Servers installed with SteamCMD draw the resources the game needs directly from the VDS. In games like Rust and ARK, strong single-core performance and enough RAM determine how smooth gameplay feels for players. For a single mid-size server, the OB-R9-6 plan is a good start; if you're planning multiple servers or modded maps, compare the Ryzen 9 5900X-based VDS options and pick a larger plan. If you get stuck during setup, you can open a support ticket with the OyunBulut team (support is provided in Turkish).

Frequently asked questions

Do I need to buy the game to download its server with SteamCMD?

Most dedicated servers, including Rust, Valheim, ARK and Palworld, download for free with an anonymous login. For some games, such as DayZ, you need to sign in with a Steam account that owns the game.

Why does force_install_dir have to come before login?

SteamCMD expects you to set the install folder before you sign in. If the order is reversed, it shows a warning and the files may download to the default location.

Should I use the validate parameter on every update?

No. Because validate checks every file, it slows the process down; using it on the first install and when you suspect file corruption is enough.

Is it a problem to run a game server as the root user?

Yes, it's a security risk. If a vulnerability is found in the server software or a plugin, an attacker gains access to the whole VDS; use a separate steam user instead.

Will my game server start automatically when the VDS reboots?

On Linux, it will once you define a systemd service and enable it. On Windows, a Task Scheduler task that runs at startup does the same job.

For this guide

Recommended plans

The OB-R9-6 Ryzen VDS, with root access and NVMe storage, gives you the CPU and RAM balance you need to set up your own Rust, ARK or Valheim server with SteamCMD and full control.

OB-R9-6

Recommended

12 GB RAM

$16.71/mo

+VAT

  • Processor6 vCPU
  • ModelAMD Ryzen 9 5900X
  • Disk80 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

2 GB RAM

$3.93/mo

+VAT

  • Processor2 vCPU
  • ModelAMD Ryzen 9 5900X
  • Disk30 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

4 GB RAM

$5.90/mo

+VAT

  • Processor2 vCPU
  • ModelAMD Ryzen 9 5900X
  • Disk40 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

Ryzen VDS — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.