
As the lone survivor of a passenger jet crash, you find yourself in a mysterious forest battling to stay alive against a society of cannibalistic mutants. Build, explore, survive in this terrifying first-person survival horror simulator.
Here's what you need to run a The Forest dedicated server.
Small server, 1-4 players
Medium server, 4-8 players
Full server, 8-8 players
Start hosting from your own computer
Run a The Forest server on your desktop, laptop, VPS, or dedicated machine — GameCP automates Docker setup, resource allocation, and 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 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 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 VAC_SECURE="on" export DIFFICULTY="Normal" export SAVE_SLOT="1" export VEGAN_MODE="off" export VEGETARIAN_MODE="off" export ALLOW_CHEATS="off" export ALLOW_BUILDING_DESTRUCTION="on" export TREE_REGROW="off" export RESET_HOLES="off" export ENEMIES_CREATIVE="off" export REALISTIC_DAMAGE="off" export INIT_TYPE="New" export AUTOSAVE_INTERVAL="15" export TARGET_FPS_IDLE="5" export TARGET_FPS_ACTIVE="60" export SHOW_LOGS="on" export AUTO_UPDATE="1" # Pull the container image docker pull ghcr.io/ptero-eggs/yolks:wine_latest
Download the The Forest dedicated server using Steam App ID 556450.
# Download The Forest server files (App ID: 556450) /opt/steamcmd/steamcmd.sh \ +force_install_dir /opt/gameserver \ +login anonymous \ +app_update 556450 validate \ +quit
The Forest requires 3 ports to be open for game traffic and queries.
sudo ufw allow 27016/udp sudo ufw allow 27015/udp sudo ufw allow 8766/udp
Start the The Forest server using the configuration from Step 1.
Create the startup script
# Create the startup script cat > /opt/gameserver/start.sh << 'EOF' #!/bin/bash # 1. Disable Wine sound to prevent ALSA errors winetricks sound=disabled # 2. Build Argument Array PARAMS=( "-batchmode" "-nographics" "-nosteamclient" "-serverPasswordAdmin" "" "-inittype" "New" "-savefolderpath" "/home/container/TheForestDedicatedServer_Data" "-configfilepath" "/home/container/TheForestDedicatedServer_Data/forest/config/config.cfg" ) # 3. Start Server echo "Starting The Forest Dedicated Server..." xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine ./TheForestDedicatedServer.exe "[@]}" 2>&1 | grep -v 'RenderTexture.Create failed' EOF chmod +x /opt/gameserver/start.sh
Run the container
docker run -d \ --name the-forest-server \ -p 27016:27016/udp \ -p 27015:27015/udp \ -p 8766:8766/udp \ -e VAC_SECURE="on" \ -e DIFFICULTY="Normal" \ -e SAVE_SLOT="1" \ -e VEGAN_MODE="off" \ -e VEGETARIAN_MODE="off" \ -e ALLOW_CHEATS="off" \ -e ALLOW_BUILDING_DESTRUCTION="on" \ -e TREE_REGROW="off" \ -e RESET_HOLES="off" \ -e ENEMIES_CREATIVE="off" \ -e REALISTIC_DAMAGE="off" \ -e INIT_TYPE="New" \ -e AUTOSAVE_INTERVAL="15" \ -e TARGET_FPS_IDLE="5" \ -e TARGET_FPS_ACTIVE="60" \ -e SHOW_LOGS="on" \ -e AUTO_UPDATE="1" \ -v /opt/gameserver:/opt/gameserver \ -w /opt/gameserver \ ghcr.io/ptero-eggs/yolks:wine_latest \ ./start.sh
GameCP automates every step above: Docker, SteamCMD, port forwarding, startup, and config. Install on your own PC and deploy a 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