How to Self-Host The Forest Server on Windows Free
In this article
This guide shows you how to set up your own The Forest multiplayer server on a Windows PC without paying for a hosting service. You'll run the dedicated server tool that comes free with the game, configure it for your friends, and keep it running in the background. No prior server experience is needed, just a copy of the game and a Windows computer.
What You'll Need
- A Windows PC (Windows 10 or 11 recommended) with at least 4 GB of RAM free.
- A copy of The Forest on Steam (the server tool is included free with the game).
- A stable internet connection with a public IP address or port forwarding capability.
- Steam client installed and logged in.
Step-by-Step
- Install The Forest via Steam. Open Steam, go to your Library, find The Forest, and click Install. Let it download completely. The dedicated server files are included in the same installation folder.
- Locate the dedicated server tool. After installation, navigate to your Steam installation folder (usually
C:\Program Files (x86)\Steam\steamapps\common\The Forest). Inside, you'll see a file namedTheForestDedicatedServer.exe. - Run the dedicated server once. Double-click
TheForestDedicatedServer.exe. A console window will open and generate the necessary configuration files in a folder calledDedicatedServerinside the same directory. Wait until you see a message like "Server started" or "Loading complete" before closing it. - Edit the server configuration. Open the
DedicatedServerfolder and findserver.cfg. Right-click it and open with Notepad. Here you can set your server name, password, max players, and other settings. For example, changeserverName = My Serverto your desired name, and setserverPassword =to a password if you want one. Save the file after editing. - Set up port forwarding (if needed). To let friends connect from the internet, you must forward ports on your router. The Forest uses TCP and UDP port 27016 by default. Access your router's admin page (usually via a browser at 192.168.1.1 or 192.168.0.1), find the Port Forwarding section, and add a rule that forwards both TCP and UDP on port 27016 to your computer's local IP address (e.g., 192.168.1.50).
- Find your public IP address. Search "what is my IP" in a web browser to see your public IP. Share this IP with your friends, along with the port (if it's not the default).
- Start the server. Run
TheForestDedicatedServer.exeagain. Keep this window open; closing it stops the server. You should see a message like "Server started on port 27016" or similar. - Test the server. On your own computer, launch The Forest from Steam, select Multiplayer, and choose "Dedicated Server" from the server browser. Your server should appear in the list, or you can connect directly by entering your public IP in the "Direct Connect" field.
- Keep the server running. To keep the server up 24/7, you can leave the console window open. For a more permanent solution, you can create a Windows Task Scheduler task to start the server at boot, or use a script that restarts it if it crashes.
Common Mistakes
- Forgetting to forward both TCP and UDP. Many guides mention only one, but The Forest requires both. If friends can't connect, this is the first thing to check.
- Using the wrong local IP. Your computer's IP address changes over time. Always check your current local IP (via
ipconfigin Command Prompt) before setting up port forwarding. - Editing the wrong config file. Make sure you edit
server.cfgin theDedicatedServerfolder, not the main game's config files elsewhere. - Closing the console window. The server stops when the console is closed. If you want it to run while you play, you need to run it as a separate process or use a tool like a batch file that keeps it running in the background.
- Not allowing the server through Windows Firewall. Windows may block the server's connections. You'll need to allow
TheForestDedicatedServer.exethrough the firewall on both private and public networks.
Tips
- Set a password. Even if you trust your friends, a password prevents random players from joining and griefing your world.
- Back up your save files. The server saves world data in the
DedicatedServerfolder. Regularly copy this folder to another location to avoid losing progress. - Use a static IP for your PC. In your router's DHCP settings, assign a static lease to your computer's MAC address so its local IP doesn't change, which would break port forwarding.
- Run the server on a separate PC or old laptop. Hosting on the same machine you play on can cause lag. If possible, use a spare computer that's always on.
- Monitor server logs. The console window shows player joins, errors, and saves. Check it periodically to ensure everything is running smoothly.
Troubleshooting
Friends can't connect. First, verify port forwarding is set correctly for both TCP and UDP on port 27016. Check your public IP hasn't changed. Temporarily disable Windows Firewall to test if it's the culprit. If it works with firewall off, add an exception for the server executable.
Server doesn't appear in the browser. This is common due to Steam's server list delays. Use the "Direct Connect" option and enter your public IP:port (e.g., 123.45.67.89:27016). If that works, the server is fine; the browser list is just slow.
Server crashes on startup. Ensure your PC meets the minimum requirements. Check that you have the latest graphics drivers and that no other program is conflicting. Look at the console output for error messages and search them online for specific fixes.
Game lags when playing on the same PC. Hosting and playing on the same machine is resource-intensive. Close other applications, lower in-game graphics settings, and consider upgrading RAM or using a separate machine.
Can't edit server.cfg. If the file is read-only, right-click it, select Properties, and uncheck Read-only. Make sure you save with UTF-8 encoding if you use special characters.
Frequently Asked Questions
Do I need to buy a separate server license? No, the dedicated server tool is included free with your copy of The Forest. You just need one copy of the game to run the server, and players need their own copies to join.
Can I run the server without opening Steam? Yes, the dedicated server runs independently of the Steam client. You can even start it from a shortcut without launching Steam, as long as Steam is installed and logged in once.
What are the minimum specs for hosting? The Forest server is not very demanding. A dual-core CPU, 4 GB RAM, and a decent internet connection (5 Mbps upload) are enough for a small group of friends.
Can I use a different port? Yes, you can change the port in server.cfg (e.g., serverPort = 27017). If you do, you must forward that port on your router and share the new port with friends.
How do I update the server when the game updates? Steam updates the game files automatically when you launch the server tool. Just make sure Steam is running and the game is up to date before starting the server.
Can I run multiple servers on one PC? Yes, you can run multiple instances of the server by copying the DedicatedServer folder and changing the port in each copy's config. Each instance will need its own port and enough system resources.