Server settings in The Forest live in a single configuration file that the dedicated server reads on startup, and editing it is the normal way to control slots, difficulty, saves and gameplay toggles. On the PC dedicated server the file is server.cfg, sitting in the server's install folder; on the console versions the same options appear as in-game menus rather than a file you edit. The steps below focus on the PC dedicated server, because that is where cfg editing is relevant, and note the console equivalents where they differ. Menu and file names can vary slightly between game versions, so if a label looks different in your build, look for the closest match rather than assuming a step is wrong.
What You'll Need
- A copy of The Forest that includes the dedicated server files, installed through Steam (or the server files supplied for your hosting panel).
- Access to the server's file system — either local folders or the file manager in your hosting control panel.
- A plain-text editor such as Notepad or Notepad++ (or the panel's built-in editor).
- The exact server admin password you intend to use, and the password for players if you want the game private.
- Be familiar with opening ports: the machine must have the game's ports open or forwarded, otherwise the cfg works but nobody can connect.
- Restart access to the server process, and if you host with a provider, a way to reach the console log.
Step-by-Step
- Find server.cfg before touching anything. In a Steam-installed dedicated server the config file sits next to the server executable in its own folder; in hosting panels it usually appears under a Configuration or Files section. If you cannot see it, check for an example or template file (often named with a sample suffix) and copy it to server.cfg so the server has something to read.
- Back up the current file. Rename a copy to something like
server.cfg.backupor download it before editing. A single typo can stop the server booting, and a backup turns a broken launch into a thirty-second fix. - Stop the server. Close the running process properly rather than editing a file while the game has it in use. The server usually rewrites or ignores your changes if it is still running when you save.
- Open the file in a plain-text editor. The settings are written as one
key valuepair per line. Keep the format the file already uses — do not add quotes, tabs or extra spaces unless the existing lines do. The engine reads tokens, not prose, and stray punctuation is the most common reason a line is silently ignored. - Set the core identity values first. Look for the entries controlling the server name or description, the admin password, and the player password or setting that makes the game private. These are the lines that decide whether strangers can join and who gets administrator rights in the in-game menu. Change only the values after the key, and leave the key names exactly as they are.
- Adjust player capacity and gameplay switches. The file contains entries for the maximum number of players and a set of boolean-style toggles (usually written as a word or a zero-and-one value) for things like whether players can damage each other, whether the game allows building destruction, and whether cheats or test commands are permitted. Read the surrounding lines carefully: the file's own comments, where present, are more trustworthy than a copied list from elsewhere.
- Handle the save and world values. There are entries that control where the save is stored and whether a new world is generated or an existing one is loaded. If you are moving from a single-player save to a dedicated server, the world files must be placed in the server's save location and the slot naming must match; a mismatch makes the server look empty even though the files are present.
- Save with the correct encoding and line endings. Save as plain UTF-8 (no BOM) or the editor's plain-text default, and keep the line endings the file already used. Saving in a rich-text format or changing the extension to
.rtfor.txtwill prevent the server from loading the file. - Start the server and read the startup log. Watch the console output as it launches. A healthy start names the config, reports the world and the player limit, then confirms the ports it opened. A line saying it could not parse the config, or a silent fallback to defaults, means one of your edits does not match the expected format.
- Test with one connection before inviting anyone. Join from the same network, confirm you appear as admin, confirm your intended setting is actually applied in-game (for example, your player cap, or whether friendly fire is on), then test from outside the network. Only when both work should you share the address and password.
Common Mistakes
- Editing while the server runs. Changes are lost or overwritten on the next shutdown, which makes every setting look broken when the real problem is timing.
- Changing key names. Renaming a key to something more readable turns the line into garbage; only the value should change.
- Leaving the admin password blank or default. Anyone who joins gets a path to kicking, banning and command abuse. Pick a real password and share it only with people you trust.
- Adding quotes around values. Most keys expect a bare token, a number or a simple word — quote marks frequently become part of the value.
- Forgetting ports. A perfect cfg with closed ports is an invisible server. Check the machine's firewall and any router forwarding.
- Copying a config from a different build. Keys from other versions or modded setups can be rejected; start from the file your build supplies.
Tips
- Change one group of settings at a time (identity, then gameplay, then saves) and restart between groups. When something breaks you will know exactly which edit caused it.
- Keep two backups: the untouched original and the last known-good version you actually launched successfully.
- Write your password somewhere other than the config file itself, since anyone with file access can read the cfg.
- On consoles, use the in-game host and lobby options instead — there is no config file to edit, and the available toggles are limited to those menus.
- If you host with a provider, check its file editor saves with the correct permissions; a file owned wrongly can be read but not written after a restart.
Troubleshooting
If that did not work, work from the simplest explanation outward. A server that refuses to start right after an edit almost always has a formatting fault: restore your backup, confirm it starts, then reapply edits one line at a time. A server that starts but shows default settings means it never read your file — confirm the filename is exactly what the server expects, the file sits in the correct folder, and the extension did not change.
If the server runs but nobody can connect, check three things in order: that the process reports successful port binding in the log, that the local machine's firewall permits the game's traffic, and that any external provider has the same ports open. A connection attempt that times out is usually a port or forwarding issue; one that is refused suggests the process is not listening at all. Players being rejected with a password prompt they did not expect means the private or password entry is still set. If saves do not appear, verify the slot and world folder names match what the server reports at startup, and confirm the account running the server has write access to the save directory.
Frequently Asked Questions
Where is server.cfg located?
In the folder supplied with the dedicated server files, next to the server executable. Hosting panels usually expose it in a files or configuration area.
Do I have to restart the server after editing?
Yes. The file is read at launch, so changes only apply after a restart of the server process.
Can I edit the config on a console?
No. Console hosting works through in-game lobby options rather than an editable file, and those options are more limited than the PC dedicated server.
Will changing the player limit break an existing save?
Raising or lowering the maximum player count does not change the world files, but saved characters and structures stay tied to the slot you are loading.
What happens if a line in the config is wrong?
Usually the server ignores that line, falls back to a default, or refuses to start. Restoring the backup is the quickest way to identify the guilty edit.
Is friendly fire controlled by the cfg?
On the PC dedicated server there are gameplay switches in the config for player-versus-player behaviour. Check the keys present in your build's file rather than assuming a name.