Getting started with your Sons of the Forest server
Configure dedicatedserver.cfg files, unlock custom game modes, assign admin permissions, and manage SaveSlot directories and mods.
Sons of the Forest is the sequel to The Forest, a survival horror game with co-op play. Dedicated server support is built in.
First Boot
Open your Sons of the Forest server in the panel.
Click Start.
The dedicated server (about 3.4 GB) is installed when your server is created, so the first start doesn't have to download it.
Watch for
#DSL Dedicated server loaded.in the console.
To connect: in-game, Multiplayer > Dedicated Servers, find yours by name or direct-connect.
Configuration: dedicatedserver.cfg
The config file is serverconfig/dedicatedserver.cfg, not a file in the server root. Our start line points the game's user-data folder at serverconfig/ (the -userdatapath argument), and that folder is where Endnight's server keeps dedicatedserver.cfg, ownerswhitelist.txt and its Saves folder. The file is JSON. Endnight's documented default looks like this; the copy on your server may already have a few GameSettings and CustomGameModeSettings entries filled in:
{
"IpAddress": "0.0.0.0",
"GamePort": 8766,
"QueryPort": 27016,
"BlobSyncPort": 9700,
"ServerName": "Sons Of The Forest Server (dedicated)",
"MaxPlayers": 8,
"Password": "",
"LanOnly": false,
"SaveSlot": 1,
"SaveMode": "Continue",
"GameMode": "Normal",
"SaveInterval": 600,
"IdleDayCycleSpeed": 0.0,
"IdleTargetFramerate": 5,
"ActiveTargetFramerate": 60,
"LogFilesEnabled": false,
"TimestampLogFilenames": true,
"TimestampLogEntries": true,
"SkipNetworkAccessibilityTest": false,
"GameSettings": {},
"CustomGameModeSettings": {}
} Ports, players, password and game mode come from the panel
Every setting in this file can be overridden from the command line, and our start line does that for
GamePort,QueryPort,BlobSyncPort,MaxPlayers,Password,GameMode,SaveSlotandSkipNetworkAccessibilityTest. Their values in the file are ignored, so change them on the Startup tab instead.ServerNameis rewritten from the Server Name variable on every boot. Your ports are on the Network tab and in the read-only QueryPort and BlobSyncPort fields, not the 8766/27016/9700 defaults shown above.
| Setting | Notes |
|---|---|
| ServerName | Browser display name. Set it with Server Name on the Startup tab |
| MaxPlayers | 1 to 8. Set it with Max Players on the Startup tab |
| Password | Empty for public. Set it with Password on the Startup tab |
| SaveSlot | The ID of the save the server uses. Set it with Save Slot on the Startup tab |
| SaveMode | Continue loads the save on the slot, or creates one if the slot is empty. New starts a new game on the slot and overwrites it on every start while it is set |
| GameMode | normal, hard, hardsurvival, peaceful or custom, set with Gamemode on the Startup tab. It only applies when a new save is created |
| SaveInterval | How often the server autosaves, in seconds. Default 600 |
Restart after editing.
Custom Game Mode
For deeper customization, set Gamemode to custom on the Startup tab and put your settings in the CustomGameModeSettings block of dedicatedserver.cfg. These are some of the keys Endnight documents:
"CustomGameModeSettings": {
"GameSetting.Multiplayer.Cheats": false,
"GameSetting.Vail.EnemySpawn": true,
"GameSetting.Vail.EnemyHealth": "Normal",
"GameSetting.Vail.EnemyDamage": "Normal",
"GameSetting.Vail.EnemyArmour": "Normal",
"GameSetting.Vail.EnemyAggression": "Normal",
"GameSetting.Vail.AnimalSpawnRate": "Normal",
"GameSetting.Environment.StartingSeason": "Summer",
"GameSetting.Environment.SeasonLength": "Default",
"GameSetting.Environment.DayLength": "Default",
"GameSetting.Environment.PrecipitationFrequency": "Default",
"GameSetting.Survival.ReducedFoodInContainers": false
} Custom settings are fixed when the save is created
The server reads
CustomGameModeSettingsonly when the game mode is custom and a new save is being created. When it loads an existing save, it ignores the block. To use new custom settings, start a new save: pick an empty Save Slot, or setSaveModetoNew, which overwrites the current slot.
The separate GameSettings block works in every game mode: "Gameplay.TreeRegrowth": true turns on tree regrowth (triggered when sleeping), and "Structure.Damage": true lets buildings take damage.
Admin Setup
Sons of the Forest's admin tools are in the game. Endnight's dedicated server guide says that players whose SteamIDs are in ownerswhitelist.txt, one per line, get "full access to the in-game administration panel (Pause Menu / Players)". There an owner can upgrade other players to administrators, downgrade them to guests, kick guests, and ban and unban them. Owners have "essentially the same rights as P2P server hosts", so only add people you trust.
The panel's Console tab can't do this for you. On 28 October 2026 we sent kick, ban, unban and list, and the dedicated server's own playerkick, playerban and setplayeradmin, from the Console on one of our servers. It didn't respond to any of them and logged nothing; even quit was ignored.
On your Sons Of The Forest game server the file is serverconfig/ownerswhitelist.txt, next to dedicatedserver.cfg. The server creates a default one on its first start if it's missing. Add the SteamIDs, then restart.
Save Management
Saves are in serverconfig/Saves/, inside the user-data folder our start line sets.
To upload a save from single-player:
Find your local save at
%LocalAppData%\SonsOfTheForest\Saves\<SteamID>\<Multiplayer or SinglePlayer>\.Upload the save folder into the matching slot folder under
serverconfig/Saves/.Set the Save Slot variable in the Startup tab to that slot. The panel writes
SaveSlotintodedicatedserver.cfgfrom it on every boot, so editing the file directly does not survive a restart. Note the variable takes the padded ten-digit form the game uses, such as0000000001.Set
SaveModetoContinueinserverconfig/dedicatedserver.cfg.Restart.
Wiping means deleting the save slot folder
To wipe, delete the save slot folder or change to an empty slot.
Mods
As of the current dedicated server build, Sons of the Forest has limited modding support. The community has reverse-engineered some basics (RedLoader, BepInEx), but mods are primarily client-side cosmetic or QoL.
Server-side gameplay mods are not yet a stable ecosystem. Watch the modding scene on Nexus Mods (nexusmods.com/sonsoftheforest) and the modding Discord for updates.
The most reliable approach
Tune the Custom game mode settings rather than installing mods.
Performance Tips
- Leave
SaveIntervalat 600 seconds (the default). Lower causes save-related stutters. - Disable PvP if your community is purely co-op.
- Restart daily; memory creep is noticeable over long uptimes.
Backups
Save data is small (under 1 GB typically). The panel Backups tab covers it; daily snapshots minimum.
Common Issues
- Cannot connect: Read the IP and port off the Address at the top left of your panel and have players use that exact pair. All three of the server's ports (game, query and BlobSync) are passed on the start line, so check them on the Network tab and the Startup tab rather than typing new numbers into
dedicatedserver.cfg, which ignores them. - Server in browser but cannot be joined: Often a password mismatch; double-check the client is sending the right password.
- Save corrupted: Restore from a backup. The auto-save mechanism is reliable but a crash mid-write can corrupt.
- Player kicked back to menu on join: Save slot mismatch; the server expects a slot that does not match what the client tries to join.
What to Read Next
- Is Sons of the Forest crossplay? — the platform question, and how PC groups should host
- Sons of the Forest item IDs — every item ID, and how cheats work on a dedicated server
- Sons of the Forest console commands — the F1 cheat console and the commands that don't exist
- Sons of the Forest mods — RedLoader, which mods work in multiplayer, and why the dedicated server runs unmodded
- Sons of the Forest Dedicated Server Setup and dedicatedserver.cfg Settings — self-hosting, the port self-test, and which settings our start line overrides
Made with 💜 by GameServerKings

Need a Sons Of The Forest server?
Deploy an instantly-provisioned Sons Of The Forest server on high-clock hardware. DDoS protected, no contracts, cancel anytime.
From $12.60 /month