Sons of the Forest

PlatformSupportNotes
Windows✅ NativeRecommended (official support)
Linux⚠️ Wine/ProtonRequires compatibility layer, higher overhead

Sons of the Forest

Sons of the Forest supports dedicated multiplayer servers. This guide covers both Windows (native, recommended) and Linux (Wine/Proton).

02

Windows Server (Recommended)

System Requirements

Step 1: Download Server on Windows

powershell
steamcmd +force_install_dir "C:\SotF-Server" +login your_steam_username your_steam_password +app_update 2465200 validate +quit

Step 2: Configure OptionsSotF.cfg

Create C:\SotF-Server\OptionsSotF.cfg:

[Game] GameName=My Sons of the Forest Server GamePassword=your_server_password AdminPassword=your_admin_password MaxPlayers=8 PvP=true LandClaimSystem=true CanJoinOffline=false AllowSpectators=true GoalsEnabled=true LogFile=./server.log SaveFolder=./Saves [Network] Port=8766 QueryPort=27015 Region=Automatic Public=true AntiCheatEnabled=true [Server] DifficultyPreset=Normal VegetationRespawnDays=5 AnimalSpawnMode=Regenerate

Step 3: Create Startup Batch

Create C:\SotF-Server\start-server.bat:

batch
@echo off
cd /d C:\SotF-Server
SonsOfTheForest.exe -configfile OptionsSotF.cfg
pause

Step 4: Run as Service (Optional)

powershell
nssm install SotFServer "C:\SotF-Server\SonsOfTheForest.exe" "-configfile OptionsSotF.cfg"
nssm start SotFServer
  • RAM: 8GB minimum (10GB+ recommended for stable operation)
  • vCPU: 4 cores minimum
  • Storage: SSD strongly recommended, 30GB+ available space
  • Network: Stable upstream for player connections
  • OS: Windows Server 2016+ or Windows 10/11
03

Linux Server (Wine/Proton)

System Requirements

Sons of the Forest has significant resource overhead when running under Wine/Proton. RAM usage is higher than native Linux servers. We recommend 10GB+ RAM for production servers; 8GB is minimum but may cause stability issues with many players.

Install Wine/Proton-GE

Option 1: Wine-GE (Recommended for dedicated servers)

bash
sudo apt update && sudo apt install -y wine wine32 wine64 libwine libwine:i386 winetricks
sudo dpkg --add-architecture i386
sudo apt update

Install Wine-GE (bleeding-edge gaming fork):

bash
cd ~/
git clone https://github.com/GloriousEggroll/wine-ge-custom.git
cd wine-ge-custom
./install.sh

Option 2: Proton-GE

bash
mkdir -p ~/.steam/root/compatibilitytools.d
cd ~/.steam/root/compatibilitytools.d
wget https://github.com/GloriousEggroll/proton-ge-custom/releases/download/VERSION/Proton-GE-custom-VERSION.tar.gz
tar -xzf Proton-GE-custom-VERSION.tar.gz

Install SteamCMD and Download Server

Create a dedicated user for the server:

bash
sudo useradd -m -s /bin/bash sotf
sudo su - sotf

Install SteamCMD:

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

Download the Sons of the Forest server (AppID 2465200):

bash
cd ~/steamcmd
./steamcmd.sh +login your_steam_username your_steam_password +app_update 2465200 validate +quit

The server will install to ~/steamapps/common/SonsOfTheForest/.

Configuration File (Linux)

Create OptionsSotF.cfg in the server directory:

bash
nano ~/steamapps/common/SonsOfTheForest/OptionsSotF.cfg

OptionsSotF.cfg:

[Game] GameName=DeluxHost SotF Server GamePassword=your_server_password AdminPassword=your_admin_password MaxPlayers=8 PvP=true LandClaimSystem=true CanJoinOffline=false AllowSpectators=true GoalsEnabled=true LogFile=./server.log SaveFolder=./Saves [Network] Port=8766 QueryPort=27015 Region=Automatic Public=true AntiCheatEnabled=true [Server] DifficultyPreset=Normal VegetationRespawnDays=5 AnimalSpawnMode=Regenerate EnemyHealthMode=Normal EnemyDamageMode=Normal PlayerHealthMode=Normal PlayerDamageMode=Normal

Adjust MaxPlayers between 1-8. Higher player counts increase CPU/RAM requirements significantly.

Running with Wine (Linux)

Create a wrapper script to launch the server:

bash
nano ~/start-sotf-server.sh

start-sotf-server.sh:

bash
#!/bin/bash
export WINEPREFIX=~/.wine
export WINEARCH=win64
cd ~/steamapps/common/SonsOfTheForest/

# For Wine-GE:
wine SonsOfTheForest.exe -configfile OptionsSotF.cfg

# For Proton-GE (uncomment if using Proton):
# /home/sotf/.steam/root/compatibilitytools.d/Proton-GE-custom-VERSION/proton run SonsOfTheForest.exe -configfile OptionsSotF.cfg

Make it executable:

bash
chmod +x ~/start-sotf-server.sh
./start-sotf-server.sh

Port Configuration

Open required UDP ports:

bash
sudo ufw allow 8766/udp
sudo ufw allow 27015/udp
sudo ufw allow 9700/udp

Port assignments:

Systemd Service (Linux)

Create /etc/systemd/system/sotf-server.service:

bash
sudo tee /etc/systemd/system/sotf-server.service > /dev/null <<'EOF'
[Unit]
Description=Sons of the Forest Dedicated Server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=sotf
WorkingDirectory=/home/sotf/steamapps/common/SonsOfTheForest
Environment="WINEPREFIX=/home/sotf/.wine"
Environment="WINEARCH=win64"
ExecStart=/usr/bin/wine SonsOfTheForest.exe -configfile OptionsSotF.cfg
Restart=on-failure
RestartSec=15
StandardOutput=journal
StandardError=journal
TimeoutStartSec=120

[Install]
WantedBy=multi-user.target
EOF

Enable and start:

bash
sudo systemctl daemon-reload
sudo systemctl enable sotf-server
sudo systemctl start sotf-server

Monitor:

bash
sudo systemctl status sotf-server
sudo journalctl -u sotf-server -f

Save Files and Backup

Save files are stored in the configured SaveFolder (default: ./Saves/). Back them up regularly:

bash
tar -czf sotf-saves-backup-$(date +%Y%m%d).tar.gz ~/steamapps/common/SonsOfTheForest/Saves/

To restore:

bash
tar -xzf sotf-saves-backup-YYYYMMDD.tar.gz -C ~/steamapps/common/SonsOfTheForest/

Performance Tuning

Increase Wine memory allocation (Linux)

bash
export STAGING_SHARED_MEMORY=1

Add to your start script.

Disable fullscreen optimization (Linux/Proton)

bash
export DXVK_HUD=fps

Monitor resource usage (Linux)

bash
top -p $(pgrep -f "wine.*SonsOfTheForest")
free -h
df -h
  • RAM: 8GB minimum (10GB+ recommended for stable operation)
  • vCPU: 4 cores minimum
  • Storage: SSD strongly recommended, 30GB+ available space
  • Network: Stable upstream for player connections
  • OS: Ubuntu 20.04+ or similar
  • 8766/UDP — Game server port
  • 27015/UDP — Query/Rcon port
  • 9700/UDP — Backup game traffic
04

Troubleshooting

Server won't start: Check logs with journalctl -u sotf-server -n 100

High CPU usage: Reduce player count or lower graphics settings in config

Players can't connect: Verify UDP ports 8766/27015/9700 are open, check firewall rules

Out of memory: Increase swap space or add more RAM

bash
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Wine crashes on startup: Update Wine-GE/Proton-GE to the latest version

bash
cd ~/wine-ge-custom
git pull
./install.sh

Tips & Tweaks

OptionsSotF.cfg Key Parameters:

ParameterValueImpact
MaxPlayers1-8Server capacity
PvPtrue/falseEnable/disable PvP
LandClaimSystemtrue/falseAllow land claiming
VegetationRespawnDays1-30Resource regeneration time
AnimalSpawnModeRegenerate/OfflineOnly/NoneAnimal respawn behavior

Multiplayer Settings Tips:

Save File Locations:

Backup saves regularly before updates.

  • Start with MaxPlayers=4 for stable testing
  • Increase gradually as you monitor server stability
  • PvP=false recommended for new communities
  • Enable LandClaimSystem to prevent griefing
  • Windows: C:\SotF-Server\Saves\
  • Linux: ~/steamapps/common/SonsOfTheForest/Saves/
05

Updates

Update the server regularly (Windows/Linux):

bash
cd ~/steamcmd
./steamcmd.sh +login your_steam_username your_steam_password +app_update 2465200 validate +quit
sudo systemctl restart sotf-server

DeluxHost, fondata nel 2023, offre soluzioni di hosting di alta qualità per diverse esigenze digitali. Forniamo hosting condiviso, VPS e server dedicati con sicurezza avanzata e datacenter globali.

© DeluxHost, Tutti i diritti riservati. | Partita IVA: IT17734661006
Tutti i sistemi operativi