Skip to main content
dedicatedserver.cfg is the Sons of the Forest server’s settings file, written in JSON. On a FREAKHOSTING server it is at serverconfig/dedicatedserver.cfg, and you edit it in Files. The Game Panel sets the ports, password, player limit, game mode and save slot from the Startup page at every start, so change those there. Edit the file for autosave, idle time, GameSettings and CustomGameModeSettings.

Where is dedicatedserver.cfg?

Open your server, click Files and open the serverconfig folder. It holds:
  • dedicatedserver.cfg: the server settings.
  • ownerswhitelist.txt: the SteamID64s of the server owners. See set up admins.
  • Saves: your worlds. See save slots.
The server creates the file on its first start. Any setting missing from the file uses its default.

How to edit dedicatedserver.cfg

1

Make a backup

Open Backups and click Create backup.
2

Open the file

Click Files, open serverconfig and click dedicatedserver.cfg. See how to use the File Manager.
3

Change the values

Edit the values you need. Text goes in quotes ("Continue"), numbers and true/false without. Every line except the last in a block ends with a comma.
4

Save and restart

Click Save Content and restart the server.

Which settings does the Game Panel control?

The panel starts the server with these values from Startup. They override the file, so change them on Startup:
Sons of the Forest Startup page in the Game Panel showing the Server Name, Password, Gamemode, Skip network Test and Save Slot variables

The Startup page with the Sons of the Forest variables

Settings you change in the file

Only use "SaveMode": "New" if you want a fresh world at every restart. It overwrites the save slot each time the server starts.

GameSettings: settings for your current world

The server applies these to an existing world after a restart:

CustomGameModeSettings: settings for new custom worlds

The server reads these only when Gamemode is custom and it creates a new world. To use them, set Gamemode to custom and choose an unused Save Slot, as in change difficulty.

Frequently asked questions

Why does my server name or password change back?

The panel sets them from Startup at every start. Change Server Name and Password on Startup instead of in the file.

Where are dedicatedservergameplay.json and AdminPassword?

They don’t exist in Sons of the Forest. All settings are in dedicatedserver.cfg, and admins are set in ownerswhitelist.txt.

Can I raise the player limit in dedicatedserver.cfg?

No. The panel sets MaxPlayers from the read-only Max Players variable. The game allows up to 8 players.

Why did my custom settings not change anything?

They only apply to a new world created with Gamemode set to custom. Start an unused Save Slot.

Sons of the Forest server guide

Every Sons of the Forest page in one place.

Change difficulty

Use the custom game mode.

Set up admins

ownerswhitelist.txt and the Players menu.

Save slots

New worlds and uploading your save.

Startup variables

How the Startup page works.

Tested by the FREAKHOSTING team on our Game Panel on 30 October 2026 (Sons of the Forest dedicated server on our Game Panel). Keys checked against the official dedicated server guide. Steps may differ slightly if the game changes.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: October 2026