7 Days to Die
How to set up a dedicated Server guide
  • create a .bat file lets call it startserver.bat

    (in your game folder where the 7DaysToDie.exe is located) . if you got the game over steam its "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die"

    startserver.bat
    @echo off cls echo starting sevendaystodie Dedicated Server start 7DaysToDie.exe -batchmode -nographics -configfile=serverconfig.xml -dedicated Pause
    the parameter -dedicated needs to be the last of all parameters


  • edit the serverconfig.xml

    serverconfig.xml

    <?xml version="1.0"?> <ServerSettings> <property name="ServerIP" value="yourexternalip_not_127.0.0.1"/> <property name="ServerPort" value="25000"/> <property name="ServerIsPublic" value="true"/> <property name="ServerName" value="InternationalFreaks"/> <property name="ServerPassword" value="*****"/> <property name="ServerMaxPlayerCount" value="64"/> <property name="GameWorld" value="Navezgane"/> <property name="GameName" value="t3"/> <property name="GameDifficulty" value="2"/> <property name="GameMode" value="GameModeSurvival"/> <property name="EnemySpawning" value="true"/> <property name="ShowAllPlayersOnMap" value="false"/> <property name="FriendlyFire" value="true"/> <property name="BuildCreate" value="false"/> <property name="DayNightLength" value="20"/> <property name="DayCount" value="0"/> <property name="FragLimit" value="0"/> <property name="MatchLength" value="0"/> <property name="RebuildMap" value="false"/> <property name="ControlPanelEnabled" value="true"/> <property name="ControlPanelPort" value="8080"/> <property name="ControlPanelPassword" value="******"/> <property name="TelnetEnabled" value="false"/> <property name="TelnetPort" value="25003"/> <property name="DisableNAT" value="false"/> </ServerSettings>


    ServerIP use your external you can find hit on a webside like this http://www.whatismyip.com/




  • Port forwarding
    TCP/UDP 26900
    UDP 26901-26902
    TCP 8080-8082

    and 8080 for the web panel

    for normal routers INBOUND and OUTBOUND are the same.



  • Start the server

    1.make sure by opening the task manager that no other instance of the server is still running.
    2.double check you saved the changes to the configs.
    3.start the startserver.bat file

If its not working (you cant connect or whatever...)
  • 1.after you started the startserver.bat you need to get the press any key to continue button or somthing went wrong.
  • 2.remember the External IP is not the same as your internal ip http://www.whatismyip.com/
  • 3.make sure no instance of the server is running in the task manager before you start a new
  • 4.try to open yourweb panel in your browser http://ServerIPAdress:8080/ (change ServerIPAdress to your server ip adress) if this is not working somthing with your port forwarding went wrong
  • 5 try to change this value
    <property name="DisableNAT" value="false"/>
    to true
  • 6 the server needs some time to start up wait at least 1 minute before you try to connect

  • 7 make sure you use a proper text editor like notepad ++ so you dont srew up the formatation of the .xml file.

  • 8 How can my friends join my game? give them your external ip adress if you are hosting the game on your pc (internal_IP --> router --> external_IP) find it here http://www.whatismyip.com/ or you join the server, and if its running on your PC you can connect by 127.0.0.1 to it. after that they follow you over the join game button in steam friend list.

  • 9 if your ip starts with 192.168 you can be sure its a internal and no external

  • 10 if you cant run the game after you started the server copy the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to a differed location and start the server from that location and the game normal.

  • 11 How do i join my own server? Just try to connect to 127.0.0.1 or localhost


  • 12 Do i need a second copy. The awnser is no . Just copy(doublicate not cut)the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to your desktop or where ever you like and run you server from that location that should do the trick.

  • 13 0.000 EXC: FormatException: An invalid IP address was specified
    You dident change the ip adress in the config file to your ip adress. do so.


  • 14 Only blank spash screen when trying to join via local or external ip. Try to connect via server browser.

  • 15 cant connect to your own game. Try to connect via "localhost" or "127.0.0.1" instead of the server browser.

  • 16 How can i wipe the world/restart the level . Just change the game name in the config file
    <property name="GameName" value="whatevernameyouwant"/> <!-- Whatever you want the game name to be -->
    to a differend name you want :D


So i have to say thanks to all the people posting stuff i keep this up to date so noone has to search to long for a answer
Отредактировано -=IF=- QBallDuke; 31 авг. 2016 г. в 13:15
< >
Сообщения 256270 из 342
Автор сообщения: SeeVee
Thanks for the information CotaBucky

SAWEEEEET!!!! Looking for my wallet :)
Your welcome. You will find 7dtd much easier to run a server than through Steamcmd. I run insurgency and rust through steam and it was a pain in the ass compared to 7DTD.If you have any questions you canmessage me too. More than happy to help but I'm sure you won't have a hard time were you have already run servers and know the drill.
Отредактировано CotaBucky; 7 фев. 2015 г. в 17:51
Well, you never know... each server can be it's own animal at times so I may have to hit you up if I experience some turbulence :)
Can somebody help me? I must have been working on this for hours. I wanted to play with my girl, but instead this turned out into a messed up night. I tried setting it up, it only worked once with the server on her computer (and I'd rather not, it's a weak system). Everything else after that is useless.

I have experience with other gaming servers in linux environment, so I'm not a beginner.

I start the server on my machine, I can even access the web panel and log in the game, however from her computer the server doesn't exist. There's nothing in the LAN list and if I try to manually type the IP and port and click to connect, NOTHING happens, I just click on the connect button and it makes a sound and that's about it.

There's network connectivity, firewalls are off, WHAT IS GOING ON?
It sounds like the ports are not forwarded properly for your server.Thats all I can think of.You setup serverconfig.xml properly?
Отредактировано CotaBucky; 10 мар. 2015 г. в 21:19
is the server guide still up to date?
Brilliant, thanks! Worked like a dream :D
Even for Alpha 11.3
Отредактировано Latchy; 27 апр. 2015 г. в 12:24
the serveradmin.xml isnt avaliable ?
I'm getting this:

<snip>-----------------------------------------------
InvalidOperationException: Steamworks is not initialized.
at Steamworks.InteropHelp.TestIfAvailableClient () [0x00000] in <filename unknown>:0

at Steamworks.SteamApps.BIsSubscribedApp (AppId_t appID) [0x00000] in <filename unknown>:0

at UserClient.LoginToSteam (.LoginUserCallback _delegate) [0x00000] in <filename unknown>:0

at MainMenuMono.354AA () [0x00000] in <filename unknown>:0

at MainMenuMono.3AAA1 () [0x00000] in <filename unknown>:0

at MainMenuMono.Start () [0x00000] in <filename unknown>:0
---------------------------------------------<snip>

Any help would be hot,.

other details:
- copied 7days folder to another location - running server from there
- steam *is* running
- have tried the pertinent troubleshooting tips in this guide and thread
- starts up, can hear the bg music, task gets to ~ 720K and shuts down
Отредактировано G.; 21 мая. 2015 г. в 15:55
It worked for me - but i wonder where the created player information is saved.
I just restarted my 7DTD private server and I can connect to it with my web console (IP:port/) and I see my server in the server list. when I try and connect to the listed server - the stats look good and it gets to the entering game screen AND stays there - never going into the came. my web console shows that I connected. several of my friends tried the same thing and get the same issues.

Any thoughts? again this all worked perfectly about 8 months ago - last time I ran my server.

- yes server is fully patched.
Автор сообщения: Master_Jochen
  • create a .bat file lets call it startserver.bat

    (in your game folder where the 7DaysToDie.exe is located) . if you got the game over steam its "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die"

    startserver.bat
    @echo off cls echo starting sevendaystodie Dedicated Server start 7DaysToDie.exe -batchmode -nographics -configfile=serverconfig.xml -dedicated Pause
    the parameter -dedicated needs to be the last of all parameters


  • edit the serverconfig.xml

    serverconfig.xml

    <?xml version="1.0"?> <ServerSettings> <property name="ServerIP" value="yourexternalip_not_127.0.0.1"/> <property name="ServerPort" value="25000"/> <property name="ServerIsPublic" value="true"/> <property name="ServerName" value="InternationalFreaks"/> <property name="ServerPassword" value="*****"/> <property name="ServerMaxPlayerCount" value="64"/> <property name="GameWorld" value="Navezgane"/> <property name="GameName" value="t3"/> <property name="GameDifficulty" value="2"/> <property name="GameMode" value="GameModeSurvival"/> <property name="EnemySpawning" value="true"/> <property name="ShowAllPlayersOnMap" value="false"/> <property name="FriendlyFire" value="true"/> <property name="BuildCreate" value="false"/> <property name="DayNightLength" value="20"/> <property name="DayCount" value="0"/> <property name="FragLimit" value="0"/> <property name="MatchLength" value="0"/> <property name="RebuildMap" value="false"/> <property name="ControlPanelEnabled" value="true"/> <property name="ControlPanelPort" value="8080"/> <property name="ControlPanelPassword" value="******"/> <property name="TelnetEnabled" value="false"/> <property name="TelnetPort" value="25003"/> <property name="DisableNAT" value="false"/> </ServerSettings>


    ServerIP use your external you can find hit on a webside like this http://www.whatismyip.com/




  • Port forwarding

    INBOUND
    Protocol: TCP
    Ports: 25000-25003,30000-30003
    Protocol: UDP
    Ports: 25000-25003,30000-30003

    OUTBOUND
    Protocol: TCP
    Ports: 25000-25003,30000-30003
    Protocol: UDP
    Ports: 25000-25003,30000-30003

    and 8080 for the web panel

    for normal routers INBOUND and OUTBOUND are the same.



  • Start the server

    1.make sure by opening the task manager that no other instance of the server is still running.
    2.double check you saved the changes to the configs.
    3.start the startserver.bat file

If its not working (you cant connect or whatever...)
  • 1.after you started the startserver.bat you need to get the press any key to continue button or somthing went wrong.
  • 2.remember the External IP is not the same as your internal ip http://www.whatismyip.com/
  • 3.make sure no instance of the server is running in the task manager before you start a new
  • 4.try to open yourweb panel in your browser http://ServerIPAdress:8080/ (change ServerIPAdress to your server ip adress) if this is not working somthing with your port forwarding went wrong
  • 5 try to change this value
    <property name="DisableNAT" value="false"/>
    to true
  • 6 the server needs some time to start up wait at least 1 minute before you try to connect

  • 7 make sure you use a proper text editor like notepad ++ so you dont srew up the formatation of the .xml file.

  • 8 How can my friends join my game? give them your external ip adress if you are hosting the game on your pc (internal_IP --> router --> external_IP) find it here http://www.whatismyip.com/ or you join the server, and if its running on your PC you can connect by 127.0.0.1 to it. after that they follow you over the join game button in steam friend list.

  • 9 if your ip starts with 192.168 you can be sure its a internal and no external

  • 10 if you cant run the game after you started the server copy the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to a differed location and start the server from that location and the game normal.

  • 11 How do i join my own server? Just try to connect to 127.0.0.1 or localhost


  • 12 Do i need a second copy. The awnser is no . Just copy(doublicate not cut)the folder "C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die" to your desktop or where ever you like and run you server from that location that should do the trick.

  • 13 0.000 EXC: FormatException: An invalid IP address was specified
    You dident change the ip adress in the config file to your ip adress. do so.


  • 14 Only blank spash screen when trying to join via local or external ip. Try to connect via server browser.

  • 15 cant connect to your own game. Try to connect via "localhost" or "127.0.0.1" instead of the server browser.

  • 16 How can i wipe the world/restart the level . Just change the game name in the config file
    <property name="GameName" value="whatevernameyouwant"/> <!-- Whatever you want the game name to be -->
    to a differend name you want :D


So i have to say thanks to all the people posting stuff i keep this up to date so noone has to search to long for a answer


this guide is there always a day???
I have a clean install via steamcmd, and when I start it, i get:

sh 7DaysToDie.sh
Set current directory to /home/sdtd
Found path: /home/sdtd/7DaysToDie.x86

And after about eight seconds, it exists. No warning, no error, it just quietly exists. The log file shows no obvious problems that I recognize. The last four lines are:

WARNING: Shader Unsupported: 'Suimono/effect_refractDroplets' - Setting to default shader.
WARNING: Shader Unsupported: 'Suimono/effect_refractionViewDepth' - Setting to default shader.
2015-06-27T18:02:10 5.493 INF WorldStaticData.Init() needed 1.855s
2015-06-27T18:02:10 5.493 INF Awake done


I'm not sure what the second to last line is telling me.


Slackware 64 bit with multilib for 32 bit compatibility. 3.18.2 kernel
Hedge (Заблокирован) 22 авг. 2015 г. в 9:10 
Can someone please point me to or explain the multiplayer mods such as the blue line protection, gimme/buy system, etc that I see on many servers? Thank you.
Автор сообщения: Hedge
Can someone please point me to or explain the multiplayer mods such as the blue line protection, gimme/buy system, etc that I see on many servers? Thank you.
Depending on mods ,some will not require others to download the altered files and some will. If your talking about running a dedicated server with mods you will likely have to have everybody have that mod installed. I have modded a lot of XML files and run dedicated server fine without other getting errors or issues but you have to know what your modding. Those mods I think require everyone to have them installed in there 7dtd folder in order for someone to play on your server.Not sure
< >
Сообщения 256270 из 342
Показывать на странице: 1530 50

Дата создания: 16 дек. 2013 г. в 11:33
Сообщений: 342