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.
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
// Steam Communication Port - Note: If you have a router you will need to open this port.
// Game Communication Port - Note: If you have a router you will need to open this port.
// Query Communication Port - Note: If you have a router you will need to open this port.
// Server display name
serverName The Forest Game
// Maximum number of players
// Server password. blank means no password
// Server administration password. blank means no password
// Your Steam account name. blank means anonymous (see Steam server account bellow)
// Enable VAC (Valve Anti Cheat) on the server. off by default, uncomment to enable
// Time between server auto saves in minutes
// Game difficulty mode. Must be set to "Peaceful" "Normal" or "Hard"
// New or continue a game. Must be set to "New" or "Continue"
// Slot to save the game. Must be set 1 2 3 4 or 5
// Show event log. Must be set "off" or "on"
// Contact email for server admin
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.