Your Sons of the Forest server is controlled by a small set of configuration files, most of which live in the same folder. This guide breaks down what each file does and walks through every setting inside your main configuration file, dedicatedserver.cfg.
Always make sure your server is completely stopped before editing any configuration file. Editing files while the server is running can cause your changes to be lost or ignored.
Step 1: Finding Your Configuration Files
serverconfig folder. This is where your configuration files are kept.π server (your main server directory)
π serverconfig
π ownerswhitelist.txt (list of server admins)
π SonsGameSettings (internal game settings, generally not edited directly)
π Saves (your world save data)
These files won't exist until your server has started at least once. If you don't see them yet, start your server briefly to generate the default files, then stop it again before editing.
Step 2: Understanding dedicatedserver.cfg
dedicatedserver.cfg is a JSON file that controls almost everything about how your server runs, from its name and player limit to difficulty and world generation settings. Below is the default file:
Keys and text values must be wrapped in quotation marks, numbers and true/false values must not be, and every setting except the last one in a section needs a comma at the end. A single missing quote or comma can prevent your entire server from starting, so double-check your formatting before saving.
Core Server Settings
Network & Identity
IpAddressListening interface for the server. Leave as
0.0.0.0 to listen on all interfaces.GamePortUDP port used for gameplay traffic. Default
8766.QueryPortUDP port used by Steam to list your server. Default
27016.BlobSyncPortUDP port used to sync game data between clients and server. Default
9700.ServerNameThe name shown in the in-game server browser.
LanOnlySet to
true to hide your server from the public internet listing and restrict it to LAN.Players & Access
MaxPlayersMaximum simultaneous players. Accepts 1 through 8, the game's supported co-op ceiling.
PasswordRequires players to enter this password before connecting. Leave as
"" for no password, or set up to 40 characters.Save & Game Mode
SaveSlotThe save ID used when creating or loading a world. Must be 1 or higher.
SaveMode"continue" loads the save on SaveSlot if it exists, or creates a new one if it doesn't. "new" always creates a fresh save on that slot, overwriting anything already there on every restart.GameModeDifficulty used when creating a new save:
normal, hard, hardsurvival, peaceful, or custom. Ignored when loading an existing save.SaveIntervalHow often, in seconds, the server automatically saves. Default
600 (10 minutes).Performance & Logging
IdleDayCycleSpeedMultiplier for how fast in-game time passes while no players are connected. Between
0 and 1.IdleTargetFramerateTarget server framerate while idle (no players connected).
ActiveTargetFramerateTarget server framerate while active (one or more players connected).
LogFilesEnabledWrites server logs to a
/logs folder when set to true.TimestampLogFilenamesWhen
true, each server run creates a new timestamped log file instead of overwriting the last one.TimestampLogEntriesAdds timestamps to individual lines within the log file.
Game Settings
The GameSettings block applies regardless of which GameMode you've selected:
Gameplay.TreeRegrowthEnables automatic tree regrowth, which is triggered by sleeping.
Structure.DamageAllows player-built structures to take damage.
Custom Game Mode Settings
When GameMode is set to "custom", the CustomGameModeSettings block lets you fine-tune difficulty and world settings individually. These settings are only read when a new save is created, they have no effect on an existing save, and they're ignored entirely if GameMode isn't set to custom.
Enemies & Animals
GameSetting.Vail.EnemySpawntrue/false. Enables or disables enemy spawning entirely.GameSetting.Vail.EnemyHealthlow, normal, high.GameSetting.Vail.EnemyDamagelow, normal, high.GameSetting.Vail.EnemyArmourlow, normal, high.GameSetting.Vail.EnemyAggressionlow, normal, high.GameSetting.Vail.AnimalSpawnRatelow, normal, high.Environment
GameSetting.Environment.StartingSeasonspring, summer, autumn, winter.GameSetting.Environment.SeasonLengthshort, default, long, realistic.GameSetting.Environment.DayLengthshort, default, long, realistic.GameSetting.Environment.PrecipitationFrequencylow, default, high.Survival
GameSetting.Survival.ConsumableEffectsnormal, hard. Controls whether low hydration or fullness causes damage.GameSetting.Survival.PlayerStatsDamageoff, normal, hard. Controls damage from eating bad or rotten food.GameSetting.Survival.ColdPenaltiesoff, normal, hard. Controls how much cold affects health and stamina regeneration.GameSetting.Survival.ReducedFoodInContainerstrue/false. Reduces the amount of food found in containers.GameSetting.Survival.SingleUseContainerstrue/false. Containers can only be opened once.Other Configuration Files
ownerswhitelist.txtPlain text file listing the Steam64 IDs of players with full admin access.
SonsGameSettingsGenerated automatically by the game itself. This file generally does not need to be edited directly.
SavesContains your world's save data, organized by save slot.
Related Guides
Fill in ownerswhitelist.txt with Steam64 IDs and use the admin commands.
Bring a save from your own PC into the Saves folder.
π οΈ Troubleshooting Configuration Issues
Server won't start after editing
This almost always means invalid JSON, most commonly a missing comma or quotation mark. Compare your file carefully against the default example above.
Custom settings aren't applying
Custom game mode settings only take effect when a new save is created. They won't change an existing world.
Need to start fresh
With your server stopped, delete dedicatedserver.cfg and start your server once. A clean default file will be generated automatically.
Not sure which setting changed something
Keep a backup copy of your working configuration file before making edits, so you always have something to revert to.
That covers the core configuration files for your Sons of the Forest server.
Still stuck?
Our team is happy to help. Open a ticket through the live chat button in the bottom-right corner of our website, or join our Discord and open a ticket there.
Join our Discord