This guide walks you through setting up a dedicated server for Sons of the Forest, so you and your friends can play together even when you’re offline. You’ll need a Windows PC (or a Linux machine with SteamCMD), the game itself for the client, and a stable internet connection. By the end, you’ll have a persistent world that runs 24/7, with your own settings and mods.
What You’ll Need
- A Windows PC (or Linux server) with at least 4 GB of RAM and a decent CPU (4 cores recommended).
- The Sons of the Forest dedicated server files, which are free via Steam or SteamCMD.
- SteamCMD (if you’re using a headless Linux server).
- Port forwarding access to your router (for online play).
- The same game version on the server and all clients.
Step-by-Step
- Install SteamCMD (if on Linux) – Download SteamCMD from Valve’s official site, extract it, and run it once to update. On Windows, you can skip this and use the Steam client directly.
- Download the dedicated server files – In SteamCMD, type:
login anonymous, thenforce_install_dir ./sotf_server, thenapp_update 2465200 validate. On Windows, open Steam, go to Library, filter by Tools, find “Sons of the Forest Dedicated Server”, and install it to a folder likeC:\sotf_server. - Locate the server executable – After installation, find
SonsOfTheForestDS.exe(Windows) orsotf_server(Linux) in the install folder. - Run the server once to generate config files – Execute the server binary. It will create a
configfolder and asavegamefolder. Let it run for a minute, then stop it (Ctrl+C or close the window). - Edit the server config – Navigate to the
configfolder and opendedicatedserver.cfgwith a text editor. Set the server name, password (if any), max players (up to 8), and other options like friendly fire and game mode. Save the file. - Configure network settings – By default, the server uses ports 8766 (query), 8767 (game), and 27016 (Steam). Forward these TCP/UDP ports on your router to the server’s local IP address. If you’re playing on a LAN only, you can skip this.
- Start the server – Run the server executable again. On Windows, you can create a batch file with
SonsOfTheForestDS.exe -nographics -dedicatedto run it without a GUI. On Linux, use./sotf_server -nographics -dedicated. The server will now start and load your world. - Connect from the game – Launch Sons of the Forest, go to Multiplayer, and select your server from the LAN list (if on same network) or use the Direct Connect IP option with your public IP and port. Enter the password if you set one.
Common Mistakes
- Not forwarding ports correctly – Even if the server runs, friends can’t join if ports aren’t forwarded. Double-check your router’s port forwarding rules.
- Firewall blocking the server – Windows Firewall or antivirus may block the executable. Add an exception for the server program and ports.
- Using the wrong config file – Some users edit
server.cfginside the savegame folder, but the dedicated server readsdedicatedserver.cfgfrom the config folder. Make sure you edit the right one. - Version mismatch – If clients have a different game version than the server, they’ll get a connection error. Update both to the latest patch.
Tips
- Back up your saves – The savegame folder contains your world. Copy it regularly to avoid losing progress.
- Use a static IP – Assign a static IP to your server machine so port forwarding doesn’t break after a reboot.
- Run as a service – On Windows, use NSSM (Non-Sucking Service Manager) to run the server as a background service that starts automatically.
- Monitor performance – Use Task Manager or a monitoring tool to check CPU/RAM usage. If the server lags, lower the max players or reduce the view distance in the config.
Troubleshooting
- Server doesn’t start – Check that you have the latest Microsoft Visual C++ Redistributable installed. Also, ensure the install path has no spaces (e.g., avoid
C:\Program Files). - Friends can’t connect – Verify port forwarding is correct, the server’s local IP hasn’t changed, and that the server is actually listening (check with netstat). Also, try connecting via the public IP from outside the LAN.
- Game crashes on load – Delete the savegame folder and let the server generate a fresh world. If it still crashes, verify the game files via Steam.
- High ping or lag – Ensure your upload bandwidth is sufficient (at least 5 Mbps for 4 players). Close other bandwidth-heavy applications on the server machine.
Frequently Asked Questions
Can I run the server on the same PC I play on?
Yes, but it will use extra CPU and RAM. For best performance, use a separate machine or at least a powerful PC.
How many players can join?
Up to 8 players total, including the host. The default max is 8, but you can lower it in the config.
Do I need to own the game to host a server?
No, the dedicated server files are free and don’t require a game license. However, you need the game to connect and play.
Can I use mods on a dedicated server?
Yes, but all clients must have the same mods installed. Place mod files in the server’s install folder and the clients’ game folders.
How do I update the server?
Stop the server, run SteamCMD again with the same commands to update the files, then restart the server. Your savegame will be preserved.
Why is the server not showing in the LAN list?
Make sure the server is on the same network and that you’re looking in the right tab. If it doesn’t appear, use Direct Connect with the server’s local IP.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Samsung Smart Speaker Rollable Display: Facts
- HP 9730e: Wide Prints, Not A3 Scans
- What 8888 Does When You Use It as DNS Server
- Credential Manager: Seamless Sign-In Explained
- API Governance for Public Data: What Growing Portfolios Need
- Enterprise AI Hidden Cost: Data Architecture ROI