background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Categorias

Sons of the Forest Dedicated Server Setup Guide

Disponível em: ESPAÑOL

Sons of the Forest Dedicated Server Setup Guide

This guide covers everything you need to configure, connect to, and manage your Sons of the Forest dedicated server hosted with Legion Hosting. Your server is managed through GPanel.


Server Configuration File

The main server configuration file is dedicatedserver.cfg. You can edit this file directly through the GPanel file manager or via SFTP.

Locating the Config File

The config file is located in your server's root directory:

dedicatedserver.cfg

Configuration Options

Below is a full reference for the available settings in dedicatedserver.cfg.

Setting Default Description
ServerName "Sons Of The Forest" The name displayed in the server browser and on the Steam server list.
ServerPassword "" Password required to join. Leave empty for a public server.
MaxPlayers 4 Maximum number of players allowed on the server at one time. Default is 4, maximum supported value is 8.
SaveSlot 1 Which save slot the server uses (1–3). Each slot is a separate world.
SaveInterval 600 How often the server auto-saves in seconds. Default is 10 minutes (600).
GameMode "normal" Sets the difficulty and rules. Values are lowercase. See Game Mode Options below.
GameSeed "" Optional world generation seed. Leave empty for a random seed. Set before first launch.
ServerPort The main game port (UDP). Check the Network tab in GPanel for your assigned port. Do not change this unless instructed by support.
ServerQueryPort The Steam query port (UDP) used for the server browser. Check the Network tab in GPanel for your assigned port.
BlobSyncPort The blob sync port (UDP) used for world data synchronisation between server and clients. Check the Network tab in GPanel for your assigned port.
SkipNetworkAccessibilityTest false Set to true to skip the network test on startup. Useful if the test causes slow starts.
LanOnly false If true, the server will not be visible on the public Steam server list.
LogFilesEnabled true Enables server-side log file generation for troubleshooting.

Example Configuration

Replace the port values below with the actual ports assigned to your server. Check the Network tab in GPanel for your specific port numbers.

{
  "ServerName": "My SOTF Server",
  "ServerPassword": "mypassword",
  "MaxPlayers": 4,
  "SaveSlot": 1,
  "SaveInterval": 600,
  "GameMode": "normal",
  "GameSeed": "",
  "ServerPort": YOUR_GAME_PORT,
  "ServerQueryPort": YOUR_QUERY_PORT,
  "BlobSyncPort": YOUR_BLOB_SYNC_PORT,
  "SkipNetworkAccessibilityTest": false,
  "LanOnly": false,
  "LogFilesEnabled": true
}
Important: After editing dedicatedserver.cfg, you must restart your server from GPanel for the changes to take effect.

Game Mode Options

The GameMode setting controls difficulty and survival rules. Set this before your first launch as changing it on an existing save may not fully apply.

Value Description
"normal" Standard survival experience with balanced enemy AI, hunger, thirst, and full game systems.
"hard" Increased enemy difficulty, faster resource consumption, and reduced survival margins.
"hardsurvival" Most challenging mode. Permanent death and the harshest survival conditions.
"peaceful" Enemies are passive, allowing players to focus on exploration and building without combat.
"custom" Allows custom gameplay settings. Use this mode to fine-tune individual difficulty parameters.

How to Connect to Your Server

Finding Your Server IP and Port

Your server IP and assigned ports are displayed in GPanel's Network tab. For detailed instructions, see: How to Find Your Server IP and Port.

Sons of the Forest uses three ports (game, query, and blob sync). These are assigned automatically by GPanel. Check the Network tab and Startup tab for your specific assigned port numbers, and ensure the values in dedicatedserver.cfg match.

On shared hosting, ports are randomly assigned — you cannot choose specific port numbers. If you need your server to run on specific ports, you can purchase a server with a private IP address.

Option 1: Direct Connect via Steam

  1. Open Steam and click View in the top menu bar.
  2. Select Game Servers.
  3. Click the Favorites tab, then click Add a Server.
  4. Enter your server IP and query port (from GPanel's Network tab) in the format IP:QueryPort.
  5. Click Find Games at this Address, then Add to Favorites.
  6. Launch Sons of the Forest, go to Multiplayer > Join Game, and select your server from favorites.

Option 2: Steam Server Browser (In-Game)

  1. Launch Sons of the Forest and select Multiplayer from the main menu.
  2. Choose Join Game, then select the Internet tab.
  3. Use the search/filter to find your server by name, or click Connect by IP if available.
  4. Enter your server password if one is set, and join.
Tip: If your server does not appear in the browser, allow a few minutes after startup for Steam to index it. You can also try adding it to favorites using the direct connect method above.

Save Management

Save Slots

Sons of the Forest supports up to 3 independent save slots per server. The active slot is controlled by the SaveSlot setting in dedicatedserver.cfg. Each slot maintains its own world state, player data, and progress.

To switch worlds, change the SaveSlot value (1, 2, or 3) and restart your server.

Warning: Changing the save slot switches to a different world. Your previous slot's data is preserved and can be returned to by switching back to its slot number.

Save File Location

Server save files are stored in the following path on your server:

saves/

Each save slot has its own subfolder within this directory. The structure looks like:

saves/
  Slot1/
  Slot2/
  Slot3/

Uploading a Save via SFTP

You can upload an existing save from a local single-player game or another server to your dedicated server using SFTP. For full SFTP connection instructions, see: How to Upload Files via SFTP.

  1. Stop your server from GPanel before uploading files.
  2. Connect to your server via SFTP using the credentials shown in GPanel.
  3. Navigate to the saves/ directory on your server.
  4. Upload your local save folder into the corresponding slot folder (e.g., Slot1/).
  5. Ensure SaveSlot in dedicatedserver.cfg matches the slot you uploaded to.
  6. Start your server from GPanel.
Note: Local single-player save files are typically found in:
%APPDATA%\LocalLow\Endnight\SonsOfTheForest\Saves\
Copy the relevant save folder into the appropriate slot directory on your server.

Backing Up Saves

It is recommended to periodically back up your save files via SFTP. Download the entire saves/ directory to a safe location on your local machine before making major changes or updates.


Related Articles


Need Further Help?

If you are still experiencing issues after following this guide, please open a support ticket and include:

  • A description of the issue and when it started
  • Your server ID or IP address from GPanel
  • Any relevant error messages from the server console or log files

Este artigo foi útil?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.