How to Configure Your Sons of the Forest Server (dedicatedserver.cfg)

Complete Sons of the Forest server config reference — all settings for name, players, difficulty, saves, and performance.

Sons of the Forest uses dedicatedserver.cfg (JSON format) in the server root.

All Settings

{
  "ServerName": "My SotF Server",
  "MaxPlayers": 8,
  "Password": "",
  "GamePort": 8766,
  "QueryPort": 27016,
  "BlobSyncPort": 9700,
  "LanOnly": false,
  "SaveSlot": 1,
  "SaveMode": "Continue",
  "GameMode": "Normal",
  "GameDifficulty": "Normal",
  "SaveInterval": 600,
  "IdleDayCycleSpeed": 0.0,
  "IdleTargetFramerate": 5,
  "ActiveTargetFramerate": 60
}

Key Settings

SettingDescription
ServerNameBrowser display name
MaxPlayers1–8 (hard cap)
PasswordJoin password (empty = public)
SaveSlot1–4
SaveMode"Continue" (load save) or "New" (fresh world, auto-switches to Continue)
GameMode"Normal", "Creative", "Custom"
GameDifficulty"Peaceful", "Normal", "Hard", "HardSurvival"
SaveIntervalSeconds between auto-saves (default 600)
IdleDayCycleSpeed0.0 = pause when empty, 1.0 = normal

Difficulty Levels

ValueDescription
PeacefulNo enemies, relaxed survival
NormalStandard
HardTougher enemies, scarcer resources
HardSurvivalPermadeath — death deletes player progress
CustomUnlock granular settings for enemy HP, damage, hunger, etc.

Ports

PortProtocolPurpose
8766UDPGame
27016UDPSteam query
9700UDPBlob sync (world state)

Player Management

No RCON or admin console. Use file-based lists:

  • allowlist.txt — SteamID64s allowed to join (whitelist)
  • blocklist.txt — SteamID64s permanently blocked

One ID per line.

How is this guide?

40% Off — Limited TimeGet your Sons Of The Forest server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page