
How to Make a Sons of the Forest Server with SteamCMD
Install the Sons of the Forest dedicated server, open its three UDP ports, secure dedicatedserver.cfg and validate persistence.
The Sons of the Forest dedicated server installs anonymously through SteamCMD app 2465200. It uses three UDP ports, strict JSON configuration and a startup network self-test. The most dangerous setting is SaveMode: New: while active, every restart creates and overwrites the selected save slot. Use Continue for a persistent world.
Prepare the installation
This guide targets the Windows dedicated server documented by Endnight. Create an unprivileged service account, separate SteamCMD and server directories, and a stable LAN address. For an existing instance, stop and copy its user-data directory, especially Saves, dedicatedserver.cfg and ownerswhitelist.txt.
The default user-data path is:
C:\Users\<user>\AppData\LocalLow\Endnight\SonsOfTheForestDS
Override it with -userdatapath "D:\SOTF-data" if needed. Back up this path, not only binaries installed by SteamCMD.
Install and perform the first launch
Install SteamCMD
Download app 2465200
steamcmd.exe +force_install_dir "C:\sons-dedicated" +login anonymous +app_update 2465200 validate +quitRun StartSOTFDedicated.bat
Configure a persistent world
dedicatedserver.cfg as valid JSON. Set name, password, slot and especially SaveMode: Continue. Start from default gameplay settings before custom mode.Add owners
ownerswhitelist.txt. Owners receive the highest in-game administration access, so add trusted people only.Configure dedicatedserver.cfg
Adapt this minimal example:
{
"IpAddress": "0.0.0.0",
"GamePort": 8766,
"QueryPort": 27016,
"BlobSyncPort": 9700,
"ServerName": "My Sons of the Forest server",
"MaxPlayers": 8,
"Password": "CHANGE_ME",
"LanOnly": false,
"SaveSlot": 1,
"SaveMode": "Continue",
"GameMode": "Normal",
"SaveInterval": 600,
"LogFilesEnabled": true,
"SkipNetworkAccessibilityTest": false
}
JSON permits no comments or comma after the last field. Strings stay quoted; numbers and booleans do not. The server refuses invalid JSON and normally reports the offending setting.
Open ports and pass the self-test
| Port | Protocol | Purpose |
|---|---|---|
| 8766 | UDP | GamePort |
| 27016 | UDP | QueryPort and Steam discovery |
| 9700 | UDP | BlobSyncPort for initialisation and data exchange |
Allow all three over UDP in Windows Firewall and forward them to the host when behind a router. On startup, self-test checks configuration, public IPv4 and reachability. Fix its reported cause before enabling SkipNetworkAccessibilityTest.
That option may be needed when a router lacks NAT loopback/hairpin support, but bypassing does not open a port. Test immediately from an external network. For a private LAN, enable LanOnly and retain local firewall rules.
Validate, back up and update
Before inviting the group
- •Self-test passes or bypass is justified by a successful external test.
- •The correct name appears in the dedicated browser.
- •An external player joins and an owner opens admin controls.
- •SaveMode remains Continue after world creation.
- •A clean stop and restart returns the same world and players.
- •The complete user-data folder is backed up off-host.
- •File logs are enabled during diagnosis and monitored.
Before updating, stop and archive user data. Run the same SteamCMD command, start privately and verify the save. Direct edits to StartSOTFDedicated.bat may be replaced by validation; keep custom arguments in a separate wrapper.
Run Sons of the Forest without port management
Compare plans with installation, backups and networking preconfigured.
Frequently asked questions
What is the Sons of the Forest server app ID?
Why is my world recreated on every launch?
SaveMode. New creates a new world and overwrites the slot on every start; use Continue to load or create the selected SaveSlot once.Which ports must be opened?
Can I skip the network test?
SkipNetworkAccessibilityTest hides the test but fixes neither firewall nor forwarding; validate with a player on another network.Sources: Endnight dedicated server configuration guide and SteamCMD.
Ready to launch your Sons of the Forest server?
Here are the best Sons of the Forest hosting deals right now, promo codes included. Still unsure? Our quiz finds the ideal host for you in under 2 minutes.
Sons of the Forest
OptiNAS
Specifications
Compatible games
Features
- ✓Environ 6 joueurs
- ✓Minimum : 3 vCPU et 8 Go de RAM
- ✓Conseillé : 3 vCPU et 8 Go de RAM
- ✓Plugins et mods possibles selon le jeu
- +2 more features