Home/ Guides/ Sons of the Forest/ Server Settings Explained
๐ŸŒฒ Sons of the Forest ยท Server Settings

Sons of the Forest Server Settings Explained

Sons of the Forest runs its dedicated server off one file, dedicatedserver.cfg, and it is strict JSON despite the .cfg name. Here is what every key does, the values it accepts, and a sane setting for each.

Keys & defaults checked against the current GamesOMG generator ยท last verified June 2026
Jump to a section
โš™๏ธ
Don't want to hand-edit config files?
Every setting here lives in dedicatedserver.cfg at ...\AppData\LocalLow\Endnight\SonsOfTheForestDS\, which the server writes on its first launch. It is valid JSON, so one trailing comma or missing quote stops the server from booting. Edit it with any text editor and restart the server to apply, or skip the hand-editing and let the generator build a clean file for you.
๐ŸŒฒ

Server

File: dedicatedserver.cfg (top-level keys)

Name, password, player cap, game mode, and save handling. These sit at the top level of the file.

SettingWhat it doesDefaultRecommended
ServerNameThe name your server shows in the in-game browser. Purely cosmetic, so call it whatever helps people find it. It sits at the top level of the file, outside both settings blocks.Sons Of The Forest Server (dedicated)Anything recognizable
PasswordThe join password. Leave it empty and anyone can connect; set a value to lock the server to people you hand it to.(empty)Set one for private servers
MaxPlayersThe concurrent player cap. Sons of the Forest caps co-op at 8 and the dedicated server obeys that ceiling, so any number above 8 is quietly ignored.88
GameModePicks the difficulty the world runs on. The stock file ships as Normal, but the entire CustomGameModeSettings block is dead weight unless this is Custom, so keep it on Custom if you want your enemy and survival tweaks to register. Peaceful, Normal, Hard, Hard Survival, and Creative all ignore the custom block.CustomCustom
SaveModeContinue resumes the world already in the slot; New wipes it and starts fresh. Custom difficulty is stamped into a world when it is created, so the first time you apply custom settings you need New or nothing takes.ContinueNew for a fresh custom world
SaveSlotWhich of the five save slots the server loads (1 to 5). Each slot is a separate world, so switching the slot switches the world.11
LanOnlyOff keeps the server reachable over the internet. On restricts it to your local network, which is only useful for same-house testing.falsefalse
๐ŸŒ

Network & Ports

File: dedicatedserver.cfg (top-level keys)

Bind address and the three UDP ports. Forward all three or the server never lists.

SettingWhat it doesDefaultRecommended
IpAddressThe local interface the server binds to. 0.0.0.0 listens on every interface and is what almost everyone wants. This is the bind address, not the public IP players type in.0.0.0.00.0.0.0
GamePortThe primary UDP game port. Forward it to the server machine's LAN IP or nobody connects.87668766
QueryPortThe UDP Steam query port. This is how the server browser finds and lists you, so forward it alongside the game port.2701627016
BlobSyncPortUDP port for syncing save data (blobs) down to joining clients. Sons of the Forest genuinely needs all three ports open, and this is the one people forget to forward.97009700
SkipNetworkAccessibilityTestOff runs a reachability check on boot. Turn it on only when that check is wrongly failing on a correctly forwarded box and refusing to let the server start.falsefalse
๐Ÿ’พ

Saves & Performance

File: dedicatedserver.cfg (top-level keys)

Autosave cadence, tick targets, and logging. All top-level keys.

SettingWhat it doesDefaultRecommended
SaveIntervalSeconds between autosaves, default 600 (10 minutes). Drop it toward 300 if you would rather lose less to a crash. Going much lower just grinds the disk for little gain.600300 to 600
ActiveTargetFramerateThe server tick target while players are connected. 60 is fine for nearly everyone; only touch it if you are tuning a constrained host.6060
IdleTargetFramerateThe tick target when nobody is online, kept deliberately low at 5 so an empty server barely uses CPU. No reason to raise it.55
IdleDayCycleSpeedA multiplier on how fast time moves while the server sits empty. 0 freezes the clock, so you do not log back into a deep winter you never played through. Raise it if you want the world's seasons to keep advancing unattended.00
LogFilesEnabledOff keeps logs in the console only. On writes them to disk, which is what you want on an unattended box you cannot watch live.falsetrue for headless boxes
TimestampLogFilenamesOn gives each log file a timestamped name so a new run does not overwrite the last one. Only matters once Log Files are enabled.truetrue
TimestampLogEntriesOn stamps every log line with a time. Cheap and useful for pinning down exactly when something broke.truetrue
๐ŸŒณ

Game Settings (all modes)

File: dedicatedserver.cfg โ†’ GameSettings block

These live in the GameSettings block and apply in any mode, not just Custom. Watch the bare prefixes; a GameSettings key will not work in the Custom block or the other way round.

SettingWhat it doesDefaultRecommended
Gameplay.TreeRegrowthOn lets felled trees grow back over time, so a long-running server does not end up a clear-cut wasteland. Off makes wood a finite resource. Note the bare Gameplay. prefix; this block applies in every game mode.truetrue
Structure.DamageOn lets your builds take damage from enemies and the world. Off makes bases indestructible, handy for a building-focused server. Uses the bare Structure. prefix.truetrue
๐Ÿ‘น

Custom Enemies

File: dedicatedserver.cfg โ†’ CustomGameModeSettings (Custom mode only)

The cannibals and mutants. Everything here is read only when GameMode is Custom.

SettingWhat it doesDefaultRecommended
GameSetting.Vail.EnemySpawnOn is the normal game with cannibals and mutants roaming the island. Off empties the map of enemies for a quiet exploration or building run.truetrue
GameSetting.Vail.EnemyHealthHow much punishment enemies soak before dropping. Accepts low, normal, or high.normalnormal
GameSetting.Vail.EnemyDamageHow hard enemy hits land. low, normal, or high. This is the main how-lethal-is-the-forest dial.normalnormal
GameSetting.Vail.EnemyArmourHow much incoming damage enemies shrug off before it registers. low, normal, or high. It is spelled the British way, EnemyArmour, and the server wants it exactly like that.normalnormal
GameSetting.Vail.EnemyAggressionHow eagerly enemies come at you instead of lurking. low, normal, or high, and high makes the island genuinely relentless.normalnormal
GameSetting.Vail.EnemySearchPartiesHow hard cannibal groups hunt down and harass your base between raids. low, normal, or high.normalnormal
GameSetting.Vail.AnimalSpawnRateHow many huntable animals roam the island, which is really your meat and hide supply. low, normal, or high.normalnormal
๐Ÿฅฉ

Custom Survival

File: dedicatedserver.cfg โ†’ CustomGameModeSettings (Custom mode only)

Survival pressure, scavenging, and building rules. Custom mode only.

SettingWhat it doesDefaultRecommended
GameSetting.Survival.PlayerStatsDamageHow much running low on hunger, thirst, or rest actually hurts you. off, normal, or hard. Off removes the survival-needs penalty entirely.normalnormal
GameSetting.Survival.ColdPenaltiesHow badly winter cold drains you when you are underdressed. off, normal, or hard.normalnormal
GameSetting.Survival.StatRegenerationPenaltyHow much being in poor condition slows your health regeneration. off, normal, or hard.normalnormal
GameSetting.Survival.ConsumableEffectsHow long the buffs from food and drink stick around. normal or hard, where hard is shorter and stingier.normalnormal
GameSetting.Survival.BuildingResistanceHow much abuse your structures take before they fail. low, normal, or high.normalnormal
GameSetting.Survival.ReducedFoodInContainersOff is normal loot. On thins out the food you find in world containers for a tighter scavenging economy.falsefalse
GameSetting.Survival.SingleUseContainersOff lets containers be looted the usual way. On means each container gives up its contents once and then stays empty, so there is no point re-checking a spot.falsefalse
GameSetting.Survival.OneHitToCutTreesOff is normal chopping. On fells any tree in a single swing, a big time-saver for building-heavy servers. Spelled OneHitToCutTrees, plural, which some guides get wrong.falsefalse
GameSetting.Construction.NoCuttingsSpawnOff spawns plant cuttings you can gather and replant. On disables them. Note the Construction namespace on this key rather than Survival.falsefalse
GameSetting.FreeForm.ForcePlaceFullLoadA free-form building placement option under the FreeForm namespace. It stays off for normal play; leave it unless a specific building guide tells you to flip it. What it changes in practice is thinly documented outside the game, so treat it as advanced only.falsefalse
๐Ÿ‚

Custom Environment

File: dedicatedserver.cfg โ†’ CustomGameModeSettings (Custom mode only)

Seasons, day length, and weather. Custom mode only.

SettingWhat it doesDefaultRecommended
GameSetting.Environment.StartingSeasonWhich season the world opens in. spring, summer, autumn, or winter. Starting in winter drops you straight into cold survival with no ramp-up.summersummer
GameSetting.Environment.SeasonLengthHow long each season runs before it rolls over. short, default, long, or realistic, where realistic is the longest.defaultdefault
GameSetting.Environment.DayLengthHow long a full day and night cycle takes. short, default, long, or realistic.defaultdefault
GameSetting.Environment.PrecipitationFrequencyHow often rain and snow roll in. low, default, or high.defaultdefault
โš–๏ธ

Custom Rules

File: dedicatedserver.cfg โ†’ CustomGameModeSettings (Custom mode only)

Cheats, PvP, and the godmode switches. Custom mode only.

SettingWhat it doesDefaultRecommended
GameSetting.Multiplayer.CheatsOff is normal. On enables developer and console cheats for the server, mostly for testing or a sandbox game.falsefalse
GameSetting.Multiplayer.PvpDamageWhether players can hurt each other, and how much. off, normal, or hard. Off keeps the server strictly co-op.normaloff for co-op
GameSetting.Survival.CreativeModeOff is normal survival. On drops the Custom game into a creative, free-build style experience.falsefalse
GameSetting.Survival.PlayersImmortalModeOff means players can die. On makes them unkillable, for a pure building or exploration server. Spelled PlayersImmortalMode exactly.falsefalse

Sons of the Forest Server Settings FAQ

Why won't my Sons of the Forest server settings apply?
Two reasons cover almost every case. First, the whole CustomGameModeSettings block is ignored unless GameMode is set to Custom, so people fill in enemy and survival values, leave the mode on Normal, and nothing changes. Second, custom difficulty locks in when a world is created, so it only takes on a fresh save. Set GameMode to Custom and SaveMode to New, or use the generator, which defaults both correctly.
Where is the dedicatedserver.cfg file?
The server writes it on first launch at ...\AppData\LocalLow\Endnight\SonsOfTheForestDS\dedicatedserver.cfg. That is the file you edit or replace. It is strict JSON despite the .cfg extension, so a trailing comma or missing quote will stop the server booting with a parse error.
How many players can a Sons of the Forest dedicated server hold?
Eight. The game hard-caps co-op at 8 players and the dedicated server enforces the same limit, so setting MaxPlayers higher just gets the extra slots ignored.
Is dedicatedserver.cfg really JSON?
Yes. The .cfg name is misleading; the file's contents are strict JSON, including two nested objects, GameSettings and CustomGameModeSettings. One formatting slip and the server refuses to start. The generator outputs valid JSON so you never hit that.
Do I need to restart the server after changing settings?
Yes. dedicatedserver.cfg is read at boot, not live, so edits do nothing until the next launch. Save the file and restart the server. If you rebuild it with the generator, drop the new file in place and restart.