The Forest

The Forest

150 ratings
Dedicated Server Tutorial
By SurvivalistGaming [C.M.] and 3 collaborators
This guide explains how to host the newly added Dedicated Servers! This is just the first pass, so be sure to report any bugs you find!
Dedicated Server Tutorial
The Forest Dedicated Server
Game version: v0.59
This document explains how to launch a dedicated server for The Forest.
Note: Running server silently in background feature is not yet available (meaning the window for the server will be a black screen).

Installing and launching the dedicated server app
In the Library tab select Tools. Locate The Forest Dedicated Server and install it.
If launching from Steam does not result in the server showing up in the Internet server list, try launching it directly from the executable or a shortcut instead.

You can download the tool either through the Steam tool section, or SteamCMD if you would like to avoid signing into steam entirely!

There are 2 ways to configure the dedicated server:
  • Using command line parameters.
  • Using the Server.cfg file.
Note: Command line parameters overwrite the Server.cfg file setup.

Using the command line configuration
To launch a dedicated server using the command line tool you need:
  • Open the ports 8766, 27015 and 27016 (on your router and firewall) for TCP/UDP.
  • Create a shortcut and add:
  • -serverip -serversteamport 8766 -servergameport 27015 -serverqueryport 27016 -servername TheForestGameDS -serverplayers 8 -difficulty Normal -inittype Continue -slot 1
  • Run the game or dedicated server using this shortcut.
  • NOTE: If you are attempting to run the Dedicated Server without steam running you will need to add -nosteamclient into your command line parameters.

The available command lines parameters are:
  • -serverip <ip> // Must be set to the server ip on the local network
  • -serversteamport <port> // Set the steam server port, default is 8766
  • -servergameport <port> // Set the server game port, default is 27015
  • -serverqueryport <port> // Set the server game port, default is 27016
  • -servername <name> // Set the server display name
  • -serverplayers <maxPlayers> // Set the max. number of players, default is 8
  • -serverpassword <password> // Set the server password, default is none
  • -serverpassword_admin <password> // Set the server admin password, default is none
  • -serversteamaccount <name> // Set the steam account, blank means anonymous (see Steam server account bellow)
  • -enableVAC // Enable Valve Anti Cheat
  • -serverautosaveinterval <Interval> // Set the autosave interval in minutes, default is 15
  • -difficulty <Peaceful|Normal|Hard> // Set the game difficult level, default is Normal
  • -inittype <New|Continue> // Set the init type of game, default is New
  • -slot <1|2|3|4|5> // Set the save slot to use, default is 1
  • -showlogs // Enable server log window

Using the Server.cfg file configuration
The Server.cfg file is is automatically generated the first time you launch a dedicated server.

It is located there:

See comments below for usage of each entry (lines beginning with //).
The Server.cfg file initial content is:
// Dedicated Server Settings. // Server IP address - Note: If you have a router, this address is the internal address, and you need to configure ports forwarding, append the current game port here as well serverIP // Steam Communication Port - Note: If you have a router you will need to open this port. serverSteamPort 8766 // Game Communication Port - Note: If you have a router you will need to open this port. serverGamePort 27015 // Query Communication Port - Note: If you have a router you will need to open this port. serverQueryPort 27016 // Server display name serverName The Forest Game // Maximum number of players serverPlayers 8 // Server password. blank means no password serverPassword // Server administration password. blank means no password serverPasswordAdmin // Your Steam account name. blank means anonymous (see Steam server account bellow) serverSteamAccount // Enable VAC (Valve Anti Cheat) on the server. off by default, uncomment to enable enableVAC off // Time between server auto saves in minutes serverAutoSaveInterval 15 // Game difficulty mode. Must be set to "Peaceful" "Normal" or "Hard" difficulty Normal // New or continue a game. Must be set to "New" or "Continue" initType New // Slot to save the game. Must be set 1 2 3 4 or 5 slot 1 // Show event log. Must be set "off" or "on" showLogs off // Contact email for server admin serverContact

Steam server account
To help players to locate your server after playing on it, Steam offers a way to identify servers.
You first need to create an ID for your server at this address Steam Community :: Steam Game Server Account Management. The appid for The Forest is 242760. As stated on that page, it is recommended to not share your server login token.
Once you have created your server ID, copy the login token and put it in either the command line -serversteamaccount <token> or in the Server.cfg file serverSteamAccount <token> and restart your server.

Server Box Owners
Owners of dedicated server hosting machines should keep in mind that, to function, dedicated servers need Steam to be running as well. Various server functions rely on Steam integration, and so having it running is required to host a dedicated server.
< >
[H-H]'Wixmix ツ Aug 17 @ 8:29pm 
Tedz Aug 8 @ 7:15am 
"server does not seem to be set up correctly" what FA fuck is wrong i seriously did everything
SpenkymenGaming Jul 25 @ 2:05pm 
I have set-up the ports and have followed the instructions @SurvivalistGaming i send you a friend invite with the hope you can help me out let me know if you have some time :)
PAEIGN Jul 24 @ 6:45pm 
so i think i have it set up but i cannot join because the server is running a different version than the game. can anyone help solve this?
OmegaJstn Jul 23 @ 8:36pm 
I've been fighting with this for a while, the -nosteamclient command doesn't seem to do much. But I removed the SteamServerID, started in anon and it loaded just fine. My SteamGuard was already enabled, and I didn't download from inside Steam I used SteamCMD to install it with the rest of my Servers.
PoonMoon Jul 22 @ 5:03am 
@AllGuy - not with this one. You should use your internal IP of the machine the service is running on. It will show up in local LAN list in the game, and your friends will see it in the public list by name.
(42o)+][)4|2|{+ Jul 20 @ 7:50pm 
i get this error "server does not seem to be set up correctly" Ive tried Restarting my client aswell, then trying to connect. :( same issue. any ideas?
Qlimax Jul 20 @ 11:04am 
any way to set this up on a vps with no 3d support? (required to open that blank window)
ㄆㄌ Jul 12 @ 5:54am 
Why is "server does not seem to be set up correctly" ? plz:(
warisuponyou Jul 9 @ 11:04am 
"host not responding" message to all outside users after update. when launched through steam, still gets invalid password bug; must launch from exe. Trees still don't regrow. CPU with no users runs at 20% all the time. Also, steam will take a good 20 minutes to list publicly, just like Ark. Get it together DEVS.