Sons Of The Forest

Sons Of The Forest

Not enough ratings
Sons Of The Forest Dedicated Server (SteamCMD) [English/Englisch] [Windows]
By Zeromix
This guide will show you how to set up a server with the SteamCMD.

The following ports must be open:
TCP: 27015, 27036 UDP: 27015, 27031-27036

You will need at least 4 GB of free disk space.
4 GB RAM.
4 Cores with at least 2,3 GHz.

German Version:
https://steamcommunity.com/sharedfiles/filedetails/?id=3139510856

I also created a tool, that automates the installation process. You can find this tool here:
https://steamcommunity.com/groups/ServerTool
   
Award
Favorite
Favorited
Unfavorite
SteamCMD Download
First of all you need the SteamCMD. You can download it here:
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
SteamCMD Login
Now you need to execute this file.
First we need to tell the programm, where to put the files into.
force_install_dir ./sotf_ds/
This will create a folder with the name "sotf_ds" and it will put in the files in this folder.

After that, we can login into the SteamCMD.
login anonymous
Server Files Download
Now you can start the download with:
app_update 2465200 validate

If the download was sucessful, you have to type
exit
in the console to close the SteamCMD.
Run the server
You should create a .batch file in your "sotf_ds" folder (e.g. RUN.bat)
Edit the .bat file with following code:
@echo off echo|set /p="1326470" > steam_appid.txt set SteamAppId=1326470 set SteamGameId=1326470 SonsOfTheForestDS.exe -userdatapath ./userdatacustom | consoleparser -colorize

The reason we don´t use the file, which comes with the server is, that the savefile location is somewhere else.

Then run the file.
It should look like this:


Just close the file now, with "CTRL+C"
You can, if your ports are forwarded already, just relaunch the Batch file and it should start with no issues.
If you want to change the name of your server, the used ports etc, you can do that in the config file, which is located in your "userdata" folder.
It´s the "dedicatedserver.cfg" file.


However, if you see that:


Then your ports aren´t correctly forwarded, and you need to change that!

If you just want to run your server in your LAN (Local Access Network), then you need to change the serverconfig.
You can find this file inside your "userdata" folder.
Open the "dedicatedserver.cfg" and set
"LanOnly": false,
to
"LanOnly": true,

And that´s all! Your server should run now.
You can shutdown your server with "CTRG+C."
Frequently Asked Questions
I can not see my server / No one can connect to my server
Please make sure, that you have opened all the required ports in your router. If the everything is set correctly, but the problem still occurs, please contact your internet provider.
Or look for your router model here:
https://portforward.com/router.htm

Is there another way instead of opening the ports?
Yes, you can also host your server through a VPN network like "Hamachi". Of course only the people in the VPN network will be able to join the server then.
If forwarding your ports doesn´t work, please contact your ISP, i won´t be able to help you.

How can i change my server port?
Just change the port in your "dedicatedserver.cfg"

The SteamCMD download failed! What should I do now?
Mostly you just need to retry the download, then the problem should be fixed.

How do I update my server?
Just open the "VerifyUpdateSOTFDedicated.bat" file and wait till it´s finished.
Server Creation Tool
To automate these steps to setup/upgrade a server, i created a tool, the group can be founde here:
http://steamcommunity.com/groups/ServerTool

The tool itself is hosted on Github, which can be found here:
https://github.com/Zeromix9/ServerTool

I hope, that will help you in the future!

If you like, you are also welcome to leave a small donation.
https://paypal.me/Zeromix
1 Comments
=Axton= Jan 16 @ 5:51pm 
We need a proper working list of console commands that is kept up to date, all the ones I found so far don't work.