A complete walkthrough for running your own Sons of the Forest dedicated server — install it with SteamCMD, edit dedicatedserver.cfg for name, difficulty and player count, open the ports, and go live 24/7. The same steps work on a spare PC or on a rented VDS that stays online 24/7.
Sons of the Forest ships a free dedicated server tool (a separate download from the game). You can self-host it on a spare PC, or rent a VDS for a 24/7 world behind DDoS protection. A dedicated server keeps your co-op world persistent so friends can play even when you're offline.
This guide covers the self-hosted SteamCMD route step by step. If your server won't appear afterwards, see our fix for Sons of the Forest server not showing.
For an always-online world, Sons of the Forest server hosting runs the dedicated server on a VDS with a public IP behind our Anti-DDoS.
What you'll need
- A machine to run the server — a spare PC, or a VDS for 24/7 uptime.
- SteamCMD, to download the free dedicated server (app 2465200).
- Open ports: UDP 8766 (game), UDP 27016 (query), UDP 9700 (blob sync).
- dedicatedserver.cfg configured (name, players, difficulty).
- On Linux, Proton/Wine to run the Windows server binary.
Set up a Sons of the Forest dedicated server, step by step
Step 1: Choose a spare PC or a VDS
The dedicated server is free, but self-hosting needs a PC on 24/7 and port-forwarding. A VDS in a datacentre keeps the world online 24/7 with a public IP, and you follow the same steps over SSH (under Wine on a Linux VDS).
Step 2: Install the server with SteamCMD
The Sons of the Forest dedicated server is Steam app 2465200 — a free, anonymous download; you don't need to own the game on the server machine.
steamcmd +login anonymous +force_install_dir ./sotfserver +app_update 2465200 validate +quitStep 3: Edit dedicatedserver.cfg
The whole server is configured in
dedicatedserver.cfg— setServerName,MaxPlayers,Password, difficulty and the network ports. Keep the default ports unless you know you need to change them.{ "ServerName": "My ESAGAMES SOTF Server", "MaxPlayers": 8, "GamePort": 8766, "QueryPort": 27016, "BlobSyncPort": 9700 }Step 4: Launch the server
Start it with
StartSOTFDedicated.baton Windows (or the binary under Proton/Wine on Linux). The first boot generates the save and world files, so give it a minute.StartSOTFDedicated.batStep 5: Open the ports
Forward UDP 8766 (game), UDP 27016 (query — lists it for players) and UDP 9700 (blob sync). Miss the query port and friends can't find the server. On a VDS there is no router to forward: just allow them if you run a firewall.
8766/udp game (default) 27016/udp query (lists the server) 9700/udp blob sync (world data)Step 6: Invite friends & keep it persistent
A dedicated server keeps the world saved and online even when you log off. Share the IP (or password), and your co-op progress carries between sessions. Back up the save folder regularly.
Run a stable SOTF server
Open all three ports
8766, 27016 and 9700 all matter — the blob-sync port (9700) carries world data. If it's closed, players can hit odd sync issues even after connecting.
Back up the save folder
Your world lives in the save directory. Back it up before updates or config changes so a bad edit never costs you the world.
A modern core keeps it smooth
SOTF isn't huge, but a modern high-clock CPU and a few GB of RAM keep an 8-player world crisp, especially in busy base areas.
Protect the IP
A public server is a DDoS target. Self-hosting exposes your home IP; a server in a protected datacentre puts a clean, filtered IP in front.
Common problems & fixes
Friends can't find the server
Open UDP 27016 (query) and 9700 (blob sync), not just 8766. See our fix for Sons of the Forest not showing for the full checklist.
The server won't start
Re-validate the install with SteamCMD, and on Linux confirm Proton/Wine is set up. Read the console output for the exact error.
The world resets or won't load
A corrupted or moved save. Restore from a backup of the save folder and don't edit configs while the server is running.
Players lag in bases
Busy base areas are CPU-heavy. Give the server a stronger high-clock CPU, or cap MaxPlayers a little lower.
Sons of the Forest is a trademark of Endnight Games. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Endnight Games. You must own a legitimate copy of the game to play.