7 Days to Die

7 Days to Die

Not enough ratings
7 Days to Die 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: 8080-8081 (ONLY if you plan to administer your server remotely.) 8082 (If you are using Alloc's mods, this is for the web map.) 26900 UDP: 26900-26902

You will also need at least 8 GB free disk space and
2 GB of RAM.

German Version:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1731898014

I also created a tool, that automates the installation process. You can find this tool here:
https://gtm.steamproxy.vip/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.
After a few seconds you can login with the following code:
login anonymous
Server Files Download
Now you need to enter the following in the console:
force_install_dir ./7days_ds/
This will create a folder with the name "7daysserver" and it will put in the files in this folder.

Now you can start the download with:
app_update 294420 validate

If the download was sucessful, you have to type
exit
in the console to close the SteamCMD.
Run the Server
Go into your "7days_ds" folder, there you will find an
"startdedicated.bat" there. With this file, you can start the server, after a few minutes it should run.

To shutdown the server, just click on the "X" it will ask you, if you want to shutdown your server if you press "yes" the shutdown process will be started.
You can also just type "shutdown."
Server Configuration
In your "7days_ds" folder you will find a file named "serverconfig.xml" which will be used to configurate the server.

You can open this file with any text editor, i personal use "Notepad ++"

I also recommand to edit the "UserDataFolder" and the "SaveGameFolder" string, so that these files will be saved in your server folder, so that if you need to move the files everything is in the same place.
Example:
<property name="UserDataFolder" value="E:/Server/SteamCMD/7days_ds/userdata"/> <property name="SaveGameFolder" value="E:/Server/SteamCMD/7days_ds/savegame"/>

Source: https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server
Server Console Commands: https://7daystodie.gamepedia.com/Command_Console
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 edit in your "serverconfig.xml" file the following:
<property name="ServerPort" value="26900"/>

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 SteamCMD and login again, then retry the Step "Downloading the files" it will be checked which files need to be updated.

Where can I find the logfile?
It can be found under
YOURFOLDER\7days_ds\7DaysToDieServer_Data
and it´s a file called "output_log_dedi__DATE_TIME", so like "output_log_dedi__2025-01-20__15-22-19" for example.

I want a specific server version, how can I do that?
If you want for example Alpha 20.6, you could do that with:
"app_update 294420 -beta alpha20.6"
Keep in mind that this is just possible with versions, which are listed as "Branches" here:
https://steamdb.info/app/251570/depots/
Server Creation Tool
To automate these steps to setup/upgrade a server, i created a tool, the group can be founde here:
http://gtm.steamproxy.vip/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
17 Comments
Kalesandrancor 16 Jun @ 9:17pm 
In case anyone else is struggling with this, trying to set the userdata and savegame locations are what prevented it from working for me.

<property name="UserDataFolder" value="C:/SteamCMD/7days_ds/userdata"/>
<property name="SaveGameFolder" value="C:/SteamCMD/7days_ds/savegame"/>
Zeromix  [author] 20 Jan @ 6:23am 
SteamCMD\7days_ds\7DaysToDieServer_Data There is a file called: output_log_dedi_DATE/TIME etc. ^^
The last one would be interesting.
Zasso 19 Jan @ 9:36pm 
@zeromix, I dont know where to look for the log file. yes it kills it after about 30 seconds. youre awesome!
Zeromix  [author] 19 Jan @ 12:38pm 
@Zasso I try to help, if I got the time, sure. :)
That´s strange, so the process get killed?
Does the log file says something?
Zasso 19 Jan @ 11:09am 
where do i find the log file? i cant seem to find it
Zasso 19 Jan @ 10:44am 
@zeromix, ok I got the server to run, but after about 30 seconds it disappears from the task manager.. i've set the config file to the best of my ability, but no idea why its not running.. thanks for the quick reply, appreciate you being around still :D
Zeromix  [author] 19 Jan @ 2:49am 
@Zasso What does the log file say?
Zasso 18 Jan @ 4:13pm 
everytime i try and run "7daystodieServer" it just flashes and doesnt run anything? any reason why this is happening? please help!?
Zeromix  [author] 27 Aug, 2024 @ 11:07am 
Dylan58 26 Aug, 2024 @ 6:14pm 
is ram automatically adjusted how does one set a certain amount to be used for the server.