ThisCalculator

Everyday

The Forest Dedicated Server: Hosting Guide

Updated · Standard formula, shown below

This guide walks you through setting up a dedicated server for The Forest, so you and your friends can play together even when the host is offline. You’ll need the game on Steam, a Windows PC (or a Linux VPS), and a little patience for port forwarding. By the end, you’ll have a persistent world running 24/7.

What You’ll Need

  • A copy of The Forest on Steam (the dedicated server tool is free via SteamCMD).
  • A Windows PC or a Linux server (Ubuntu/Debian recommended) with at least 4 GB RAM and a decent CPU.
  • SteamCMD – the command-line tool for downloading server files.
  • Router access to forward ports (if hosting at home).
  • Optional: a static IP or a dynamic DNS service if you want a fixed address.

Step-by-Step

  1. Install SteamCMD – Download SteamCMD from the official Valve website. On Windows, extract the ZIP to a folder like C:\steamcmd. On Linux, use wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz and extract it.
  2. Run SteamCMD and log in – Open a terminal/command prompt in the SteamCMD folder and run steamcmd. Then type login anonymous – you don’t need a paid account for the server files.
  3. Download the server files – In the SteamCMD prompt, enter:
    force_install_dir C:\theforestserver (Windows) or force_install_dir /home/steam/theforestserver (Linux). Then run:
    app_update 556450 validate
    Wait for the download to finish (it’s about 2 GB).
  4. Exit SteamCMD – Type quit and press Enter.
  5. Configure the server – Navigate to the server folder. Open ServerConfig.txt (it’s in the root of the server directory) with a text editor. Set:
    serverName = My Forest Server
    serverPassword = YourPassword (optional, but recommended)
    serverPort = 8766 (default)
    serverSteamPort = 8767 (default)
    serverPlayers = 8 (max players, default 8)
    Save the file.
  6. Start the server – On Windows, double-click TheForestDedicatedServer.exe. On Linux, run ./TheForestDedicatedServer.x86_64 from the terminal. The server will open a console window showing startup logs. Wait until you see something like “Server started” or “Loading complete” before telling friends to join.
  7. Port forward (if hosting at home) – Log into your router’s admin page (usually 192.168.1.1 or 192.168.0.1). Find the port forwarding section. Create rules for:
    TCP and UDP: 8766 (game port)
    UDP: 8767 (Steam query port)
    Point them to your PC’s local IP address (e.g., 192.168.1.100). Save and reboot the router if needed.
  8. Share your IP – Your friends need your public IP address (find it by searching “what’s my IP” in a browser). If you have a dynamic IP, set up a free dynamic DNS hostname (like DuckDNS) and share that instead.
  9. Join the server – In The Forest, go to Multiplayer > Dedicated Server, enter the IP and port (e.g., 123.45.67.89:8766), and connect. If you set a password, enter it when prompted.
  10. Keep it running – For a 24/7 server, leave the console window open. On Linux, you can use screen or tmux to keep it running after you log out.

Common Mistakes

  • Forgetting to forward both TCP and UDP – Many routers default to TCP only. The Forest needs both, especially UDP for Steam query.
  • Using the wrong local IP – Your PC’s IP can change after a reboot. Set a static IP or reserve it in your router’s DHCP settings.
  • Not editing ServerConfig.txt before starting – The server reads config at launch. If you edit after starting, you must restart.
  • Firewall blocking the server – Windows Firewall or Linux UFW may block the ports. Add exceptions for ports 8766 and 8767.
  • Running the server from the Steam client – The dedicated server is a separate executable. Don’t launch it from Steam’s Library; use the downloaded files.

Tips

  • Use a static IP for your server PC – This prevents IP changes from breaking port forwarding.
  • Set a server password – Even if you only play with friends, a password keeps random players out.
  • Back up your save files – The server saves world data in the server folder under save or Saves. Copy it regularly to avoid losing progress.
  • Monitor RAM usage – The server uses about 2-3 GB RAM. Close other heavy apps if you’re hosting on a gaming PC.
  • Update the server regularly – After game updates, run app_update 556450 validate again to get the latest server build.

Troubleshooting

  • Friends can’t connect – First, check that the server console shows “Server started”. Then verify your port forwarding rules are correct. Try connecting from a different network (e.g., phone hotspot) to test if the issue is local.
  • Server crashes on startup – Make sure your system meets the minimum requirements. On Linux, install 32-bit libraries: sudo apt install lib32gcc1 (Ubuntu) or lib32gcc-s1 (newer versions).
  • High ping or lag – Check your upload speed. The Forest needs about 1 Mbps per player. Close bandwidth-heavy apps. If you’re on Wi-Fi, switch to Ethernet.
  • Server not showing in the in-game browser – This is common. Use the direct IP connect option instead. Ensure port 8767 is open and forwarded.
  • Config changes not applying – Double-check the file path. The server reads ServerConfig.txt from the same directory as the executable. Restart the server after changes.
  • Port forwarding not working – Some ISPs use carrier-grade NAT, making port forwarding impossible. In that case, use a VPN like Hamachi or Radmin VPN to create a virtual LAN.

Frequently Asked Questions

Q: Do I need to own The Forest to host a dedicated server?
A: No, the server files are free via SteamCMD. However, you need to own the game to play on it.

Q: Can I host on Linux?
A: Yes, the server supports Linux. Follow the same steps but use the Linux binaries (TheForestDedicatedServer.x86_64).

Q: How many players can join?
A: The default max is 8, but you can raise it up to 16 by editing serverPlayers in the config.

Q: Can I run the server and play on the same PC?
A: Yes, but it will use more RAM and CPU. A modern quad-core with 8 GB RAM should handle it.

Q: How do I update the server?
A: Run SteamCMD again and execute app_update 556450 validate. This will download the latest version while keeping your saves.

Q: My server saves are lost after a crash – why?
A: The server saves periodically. If it crashes, the last save may be from a few minutes earlier. Check the server folder for backup saves (e.g., .bak files) and restore them.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.