Sons of the Forest Server Config Generator
Build a valid dedicatedserver.cfg: it's JSON, despite the .cfg extension, and one stray
comma breaks it. Set the server name, ports, the 8-player cap, and the full
CustomGameModeSettings block: enemy health, damage, armour and aggression, seasons, cold penalties,
building resistance, and more. The big catch is that those custom settings only do anything when
GameMode is Custom, so this tool sets that for you. Every key was read out of a
live dedicated server and checked against the game.
"ServerName": "Sons Of The Forest Server (dedicated)" "MaxPlayers": 8 "GameMode": "Custom" "SaveMode": "Continue"
Server
Name, password, player cap, and game mode. These are the top-level keys of dedicatedserver.cfg.
CustomGameModeSettings block is ignored unless GameMode is Custom, so this tool defaults it to Custom. And because difficulty is locked in when a world is created, custom settings take effect on a new world only. Point Save Slot at a number you haven't used and leave Save Mode on Continue: New wipes the world on every restart for as long as it is set.
The name shown in the server browser.
Required to connect. Leave blank for an open server.
Player cap. Sons of the Forest hard-caps multiplayer at 8, and the server does not trim a bigger number: 9 (or 0) and it refuses to start. So this maxes out at 8.
The game's stock default is Normal, but this generator defaults to Custom — because the CustomGameModeSettings block below is only read in Custom mode. Pick a preset (Peaceful/Normal/Hard/Hard Survival/Creative) and the custom block is ignored.
Continue (default) loads the world in the slot, or creates one if the slot is empty. New wipes the slot and starts a fresh world on EVERY server start while it is set, so never leave it on. GameMode and the custom settings are baked in when a world is created: for a fresh custom world, point Save Slot at an unused slot and keep Continue.
Which save the server loads. Any whole number from 1 up (0 refuses to start). Each number is its own world, and a number with no save behind it gets a brand-new one while the others stay put.
Off (default) = reachable over the internet. On restricts the server to your local network.
Network & Ports
Bind address and ports. Defaults are the verified stock values — forward all three UDP ports.
Which local interface to bind to. Leave at 0.0.0.0 to listen on all interfaces — that's almost always what you want. This is the bind address, not your public IP.
Main game port, default 8766 (UDP). Forward it to the server's LAN IP.
Steam query port, default 27016 (UDP). This is how the browser finds the server.
Port for save-data ("blob") syncing to clients, default 9700 (UDP). Sons of the Forest needs this one too — forward all three.
Off (default) = the server checks it's reachable on boot. Turn it on only if that test is failing on a correctly-forwarded host and blocking startup.
Saves & Performance
Autosave cadence, tick rates, and logging. Top-level keys.
Seconds between autosaves, default 600 (10 min). Lower it (e.g. 300) if you'd rather lose less progress to a crash.
Server tick target while players are online, default 60. Leave it unless you're tuning a constrained host.
Tick target when nobody's online, default 5 — deliberately low so an empty server barely uses CPU.
How fast time passes when the server is empty. Default 0 = time frozen while no one's online (so you don't return to winter). Raise it to keep the world clock running.
Off (default). On writes server logs to disk — handy for unattended boxes and crash diagnosis.
On (default) = each log file gets a timestamped name. Only matters when Log Files are enabled.
On (default) = each log line is timestamped. Leave on; it's free and useful.
Game Settings (all modes)
These live in the GameSettings block and apply in any game mode (not just Custom). Note the bare Gameplay. / Structure. prefixes — different from the Custom block below, and the two are not interchangeable.
On (default) = cut trees regrow over time, so a long-running server doesn't get permanently clear-cut. Off makes wood a finite resource.
On (default) = player structures can take damage (from enemies, etc.). Off makes bases indestructible — handy for building-focused servers.
Custom — Enemies
The CustomGameModeSettings block — only applied when Game Mode is Custom. Cannibals and mutants. (Yes, it's spelled EnemyArmour — British spelling, preserved exactly as the game expects it.)
On (default) = cannibals and mutants spawn. Off = no enemies at all — a peaceful exploration/building game.
How much health enemies have. low / normal (default) / high.
How hard enemies hit. low / normal (default) / high.
How much damage enemies shrug off. low / normal (default) / high.
How readily enemies attack. low / normal (default) / high. High makes the forest relentless.
How aggressively enemies hunt for your base. low / normal (default) / high.
How many (huntable) animals roam the island. low / normal (default) / high.
Custom — Survival
Survival pressure and building. CustomGameModeSettings — Custom mode only.
How much low stats (hunger/thirst/rest) hurt you: off / normal / hard. Off removes the survival-needs penalty. The game's fallback when this key is missing is not a fixed value in the game, so this tool always writes it; Endnight's own example config uses off.
How harshly cold affects you in winter: off / normal / hard. Like Player Stats Damage, the fallback when the key is missing is not a fixed value in the game, so this tool always writes it; Endnight's example config uses off.
How long food/drink benefits last. normal (default) / hard (shorter, harsher).
How much punishment your structures take before breaking. low / normal (default) / high.
Off (default). On = less food found in world containers — a scarcity bump.
On (default) = a looted container stays empty. Off = opened containers refill when the save loads, so there is more loot than the game's own default.
Off (default). On = trees fell in a single hit — a big convenience for building-focused play. (Note the exact spelling: OneHitToCutTrees, plural.)
Off (default) = placing logs while building can drop leftover off-cut pieces. On = those off-cuts don't spawn. Note the Construction namespace on this one.
Off (default). A free-form building placement option — leave off unless a building guide tells you otherwise. Note the FreeForm namespace.
Custom — Environment
Seasons and day length. CustomGameModeSettings — Custom mode only.
Which season the world begins in. spring / summer (default) / autumn / winter. Starting in winter is a real difficulty spike.
How long each season lasts. short / default (default) / long / realistic.
How long a day/night cycle runs. short / default (default) / long / realistic.
How often it rains/snows. low / default (default) / high.
Custom — Rules
Cheats, PvP, and the godmode toggles. CustomGameModeSettings — Custom mode only.
On enables developer/console cheats for the server. Off here, and this tool always writes the key, which matters: the game's own compiled default is on, so a hand-written file that leaves Cheats out gets a cheats-on world.
Whether (and how hard) players can damage each other. off / reduced / normal (default). Off makes it strictly co-op. Nothing goes above normal: the server refuses hard.
Off (default). On gives a creative-style free-build experience within the Custom game.
Off (default). On = players can't die — pure building/exploration. (Exact spelling: PlayersImmortalMode.)
About the Sons of the Forest Server Config Generator
Sons of the Forest's dedicated server is configured by a single file (dedicatedserver.cfg) and the first thing to know is that it's JSON, despite the .cfg extension. That means it's strict: a trailing comma, a missing quote, or a stray brace and the server throws a "configuration failed to parse" error and won't start. This generator builds the whole file as valid JSON, so that class of problem just disappears. The top-level keys and their defaults come from the config a live dedicated server writes on first run. That file ships the custom block empty, so the custom keys come from the server's own load log, which names every one it reads, and the on/off defaults from the values compiled into the game. A couple of option settings have no fixed default in the game at all; their tips say so.
Custom settings only work in Custom mode — and only on a new save
This is the big one. The CustomGameModeSettings block (enemy health, damage, seasons, cold penalties, all of it) is completely ignored unless GameMode is set to "Custom". People fill in all the custom values, leave the mode on Normal, and wonder why nothing changed. This tool defaults GameMode to Custom for exactly that reason. The second half of the catch: difficulty is baked into a world when it's created, so custom settings apply to a new save only. Change the custom settings on an existing world and they won't take. Starting fresh? Point Save Slot at a number you haven't used and keep Save Mode on Continue, because New wipes the world on every restart for as long as it is set.
Two setting blocks, two different prefixes — don't mix them
There are two gameplay blocks and they use different key formats, which trips people up when they copy keys around:
- GameSettings: applies in any mode. Bare namespace prefixes:
Gameplay.TreeRegrowth,Structure.Damage. - CustomGameModeSettings: Custom mode only.
GameSetting.<Namespace>.<Key>, e.g.GameSetting.Vail.EnemyHealth.
A Gameplay. key won't work in the Custom block and a GameSetting. key won't work in GameSettings. This generator puts each one in the right place automatically.
The spellings are exact — including the weird ones
A few keys have spellings you'd never guess, and the server expects them character-for-character: EnemyArmour (British spelling), OneHitToCutTrees (plural, a popular community guide gets this wrong as singular), and PlayersImmortalMode. We checked each against the current server rather than trusting a guide. Going the other way, StatRegenerationPenalty is in Endnight's guide and the current server doesn't read it, so it isn't on this tool.
The 8-player cap is real
Sons of the Forest caps co-op at 8 players, and the dedicated server is no exception: set MaxPlayers to 9 or more and the server refuses to start. The field here maxes at 8 so you don't ship a config that won't boot.
Installing the dedicated server
The Sons of the Forest Dedicated Server is a free, separate download: Steam app 2465200, installed anonymously through SteamCMD:
steamcmd +login anonymous +force_install_dir C:\SOTFServer +app_update 2465200 validate +quit
Run it with the included StartSOTFDedicated.bat. On first launch it creates a default dedicatedserver.cfg (and an owners whitelist) under ...\AppData\LocalLow\Endnight\SonsOfTheForestDS\ and asks you to restart: that's the file you replace with the one from this tool. Forward UDP 8766, 27016, and 9700.
What this generator deliberately leaves out
- Two keys the guide never lists. The server also reads
GameSetting.Survival.ReducedAmmoInContainersandGameSetting.Environment.InstantSleepSeasonSwitch, both true/false and off unless set. They aren't on this tool; add them to theCustomGameModeSettingsblock by hand if you want them. - The owners whitelist. Admin/owner SteamIDs go in a separate file the server generates next to the config: it's a plain ID list, outside this tool's scope.
- Mods. Vanilla scope only; mod-loader configs are their own thing.
Related tools
- Sons of the Forest Server Settings Explained: what every dedicatedserver.cfg setting does, with recommended values.
- Conan Exiles Server Config Generator: another survival server config.
- Abiotic Factor Server Config Generator: sliders for a co-op survival-horror server.
- Sons of the Forest Console Commands: the in-game cheat and admin command reference.
- Sons of the Forest Map: every item, cave and bunker on the island.
- All GamesOMG generators
Sons of the Forest still gets the occasional patch; we re-verify keys and defaults against a live server when it does. Spot a value that's drifted, or a custom key we should add? Hit Report an issue above and we'll check it against a fresh install.