
Sons of the Forest is a horror survival game and sequel to The Forest by Endnight Games. Sent to find a missing billionaire on a remote island, you find yourself in a cannibal-infested hellscape. Craft, build, and struggle to survive, alone or with friends.
Here's what you need to run a Sons of the Forest dedicated server.
Small server, 1-4 players
Medium server, 4-8 players
Large server, 8-8 players
Start hosting from your own computer
Run a Sons of the Forest server on your desktop, laptop, VPS, or dedicated machine ā GameCP automates Docker setup, resource allocation, and Sons of the Forest configuration instantly. Automatic port forwarding means your friends can connect without touching your router. Start local, scale to a VPS when you're ready.
Skip the manual SteamCMD installation, port forwarding, and systemd configuration. Install on your own computer and start hosting instantly.
The full manual process to host a Sons of the Forest dedicated server on a VPS. Or install GameCP on your own computer and skip all of this.
Set your server settings, then install Docker, SteamCMD, and pull the Sons of the Forest container image.
# Update system and install Docker sudo apt update && sudo apt install -y docker.io sudo systemctl enable --now docker # Create game server directory sudo mkdir -p /opt/gameserver # Install SteamCMD sudo mkdir -p /opt/steamcmd curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | sudo tar zxvf - -C /opt/steamcmd # Server configuration export LAN_ONLY="false" export GAME_MODE="Normal" export SAVE_SLOT="1" export SAVE_MODE="Continue" export IDLE_DAY_SPEED="0.0" export TREE_REGROWTH="true" export STRUCTURE_DAMAGE="true" export ENEMY_SPAWN="true" export ENEMY_HEALTH="Normal" export ENEMY_DAMAGE="Normal" export ENEMY_AGGRESSION="Normal" export ENEMY_ARMOUR="Normal" export ANIMAL_SPAWN="Normal" export STARTING_SEASON="Summer" export SEASON_LENGTH="Default" export DAY_LENGTH="Default" export SAVE_INTERVAL="600" export SKIP_NET_TEST="true" export IDLE_FPS="5" export ACTIVE_FPS="60" export AUTO_UPDATE="1" # Pull the container image docker pull ghcr.io/ptero-eggs/yolks:wine_latest
Download the Sons of the Forest dedicated server using Steam App ID 2465200.
# Download Sons of the Forest server files (App ID: 2465200) /opt/steamcmd/steamcmd.sh \ +force_install_dir /opt/gameserver \ +login anonymous \ +app_update 2465200 validate \ +quit
Sons of the Forest requires 3 ports to be open for game traffic and queries.
sudo ufw allow 8766/udp sudo ufw allow 27016/udp sudo ufw allow 9700/udp
Start the Sons of the Forest server using the configuration from Step 1.
docker run -d \ --name sons-of-the-forest-server \ -p 8766:8766/udp \ -p 27016:27016/udp \ -p 9700:9700/udp \ -e LAN_ONLY="false" \ -e GAME_MODE="Normal" \ -e SAVE_SLOT="1" \ -e SAVE_MODE="Continue" \ -e IDLE_DAY_SPEED="0.0" \ -e TREE_REGROWTH="true" \ -e STRUCTURE_DAMAGE="true" \ -e ENEMY_SPAWN="true" \ -e ENEMY_HEALTH="Normal" \ -e ENEMY_DAMAGE="Normal" \ -e ENEMY_AGGRESSION="Normal" \ -e ENEMY_ARMOUR="Normal" \ -e ANIMAL_SPAWN="Normal" \ -e STARTING_SEASON="Summer" \ -e SEASON_LENGTH="Default" \ -e DAY_LENGTH="Default" \ -e SAVE_INTERVAL="600" \ -e SKIP_NET_TEST="true" \ -e IDLE_FPS="5" \ -e ACTIVE_FPS="60" \ -e AUTO_UPDATE="1" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ ghcr.io/ptero-eggs/yolks:wine_latest \ WINEDEBUG= xvfb-run --auto-servernum wine ./SonsOfTheForestDS.exe -userdatapath "/home/container/serverconfig" -dedicatedserver.IpAddress "0.0.0.0" -dedicatedserver.GamePort "8766" -dedicatedserver.QueryPort "27016" -dedicatedserver.BlobSyncPort "" -dedicatedserver.MaxPlayers "" -dedicatedserver.Password "" -dedicatedserver.GameMode "Normal" -dedicatedserver.SkipNetworkAccessibilityTest "true" -dedicatedserver.SaveSlot "1" -dedicatedserver.LogFilesEnabled "true" -dedicatedserver.TimestampLogFilenames "true" 2>&1
GameCP automates every step above: Docker, SteamCMD, port forwarding, startup, and config. Install on your own PC and deploy a Sons of the Forest server in under 5 minutes.
Deploy with GameCPExplore step-by-step setup guides for other popular games supported by GameCP.
Install GameCP on your own computer and start hosting in minutes. Automatic port forwarding, zero config ā your friends connect instantly.
No credit card required Ā· Free tier available Ā· Install local, scale later