Menu
 

Installing Sons of the Forest via SteamCMD

Installing Sons of the Forest via SteamCMD

SteamCMD is Valve's command-line tool for downloading and updating Steam-based dedicated servers without needing a GUI Steam client. It is the standard way to install Sons of the Forest on both Linux and Windows servers, and it supports anonymous login โ€” meaning you do not need to own the game on your server account to run the dedicated server binary.

๐Ÿ†” App ID

The Sons of the Forest dedicated server Steam App ID is 2465200. This is different from the game's own App ID (1326470) โ€” always use the server ID with SteamCMD.

โœ… Anonymous Login

The SOTF dedicated server is publicly available via SteamCMD anonymous login โ€” no Steam account credentials are needed to download or update the server.

Step 1: Install SteamCMD

Linux (Ubuntu/Debian):

# Add 32-bit support (required by SteamCMD):
sudo dpkg --add-architecture i386
sudo apt-get update

# Install SteamCMD:
sudo apt-get install -y steamcmd

# Or install manually:
mkdir ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

Windows:

  1. Download steamcmd.zip from Valve
  2. Extract to a folder like C:\steamcmd\
  3. Run steamcmd.exe once to let it self-update

Step 2: Install the SOTF Dedicated Server

Linux โ€” one-line install:

steamcmd +login anonymous \
  +force_install_dir /home/steam/sotf \
  +app_update 2465200 validate \
  +quit

Windows โ€” one-line install:

C:\steamcmd\steamcmd.exe +login anonymous ^
  +force_install_dir "C:\servers\sotf" ^
  +app_update 2465200 validate ^
  +quit

The download is approximately 12โ€“15 GB. Once complete, the server directory will contain SonsOfTheForestDS.exe (Windows) or SonsOfTheForestDS (Linux).

Step 3: Create an Update Script

Running updates manually is error-prone. Create a reusable script:

Linux (update-sotf.sh):

#!/bin/bash
/usr/games/steamcmd \
  +login anonymous \
  +force_install_dir /home/steam/sotf \
  +app_update 2465200 validate \
  +quit
echo "SOTF server updated successfully."
chmod +x update-sotf.sh

Windows (update-sotf.bat):

@echo off
C:\steamcmd\steamcmd.exe +login anonymous ^
  +force_install_dir "C:\servers\sotf" ^
  +app_update 2465200 validate ^
  +quit
echo Update complete.
pause

Step 4: Validate the Installation

The validate flag in the command checksums all server files and re-downloads any that are missing or corrupted. Always use it when troubleshooting a server that crashes on startup.

Step 5: Keeping the Server Updated

Sons of the Forest releases updates frequently. When a new patch drops:

  1. Stop the server gracefully first (systemctl stop sotf.service or RCON /shutdown)
  2. Run your update script
  3. Start the server again

You can automate this entire sequence with a pre-restart update hook in your systemd service using ExecStartPre:

# In /etc/systemd/system/sotf.service:
[Service]
ExecStartPre=/home/steam/update-sotf.sh
ExecStart=/home/steam/sotf/SonsOfTheForestDS

Troubleshooting SteamCMD Issues

  • Error 0x202 / Login failure: SteamCMD's anonymous cap is sometimes hit โ€” wait a few minutes and retry
  • Missing 32-bit libraries (Linux): Run sudo apt-get install lib32gcc-s1
  • Server binary not found after install: Confirm force_install_dir path is writable and has sufficient disk space
  • Validate keeps re-downloading: Check for disk I/O errors โ€” a failing drive can corrupt files faster than SteamCMD can fix them

Dedicated User: Run SteamCMD and the server as a dedicated steam system user (not root). This improves security and keeps file permissions clean across updates.

Professional Hosting

Skip SteamCMD entirely. Host your Sons of the Forest server with Supercraft โ€” server installation and updates are handled automatically from your control panel.

Tired of fighting this issue every patch?

Run a managed Sons of the Forest server with us - we handle the patches, mod-version pinning, save backups, and DDoS protection. Set up in 3 minutes, 5 datacenter regions, no contract.

See Sons of the Forest hosting plans โ†’
Top