A Server is used for playing with multiple people in the same world. Servers can be hosted by yourself, as well as by a server hosting company. Servers officially only support up to 8 people as of A13, but some servers run upwards of 20-30 players. These servers also incur more playability issues though , because of the high number of players.
How to host a server
This is a table of the up-to-date Alpha 15 build 105 serverconfig.xml file that comes with 7 Days to Die.
Only change the data in the "value=" part of the file, otherwise it will not work.
|ServerPort||26900||Port you want the server to listen on.|
|ServerIsPublic||true||Should this server register to master server|
|ServerName||My Game Host||Whatever you want the name to be.|
|ServerPassword||Password to gain entry to the server|
|ServerMaxPlayerCount||8||Maximum Concurrent Players|
|ServerDescription||A 7 Days to Die server||Whatever you want the description to be.|
|ServerWebsiteURL||Website URL for the server|
|GameWorld||Navezgane||Navezgane, Random Gen|
|GameName||My Game||Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED|
|GameDifficulty||0||0 - 5, 0=easiest, 5=hardest|
|GameMode||GameModeSurvivalMP||GameModeSurvivalMP, GameModeSurvivalSP (MP has land protection)|
|ZombiesRun||0||0 = default day/night walk/run, 1 = never run, 2 = always run|
|BuildCreate||false||cheat mode on/off|
|DayNightLength||50||real time minutes per in game day: 50 minutes|
|DayLightLength||18||in game hours the sun shines per day: 18 hours day light per day|
|PlayerKillingMode||3||Player Killing Settings (0 = No Killing, 1 = Kill Allies Only, 2 = Kill Strangers Only, 3 = Kill Everyone)|
|PersistentPlayerProfiles||false||If disabled a player can join with any selected profile. If true they will join with the last profile they joined with|
|PlayerSafeZoneLevel||5||If a player is less or equal this level he will create a safe zone (no enemies) when spawned|
|PlayerSafeZoneHours||5||Hours in world time this safe zone exists|
|ControlPanelEnabled||false||Enable/Disable the control panel|
|ControlPanelPort||8080||Port of the control panel webpage|
|ControlPanelPassword||CHANGEME||Password to gain entry to the control panel|
|TelnetEnabled||true||Enable/Disable the telnet|
|TelnetPort||8081||Port of the telnet server|
|TelnetPassword||Password to gain entry to telnet interface|
|DisableNAT||true||Set this to true if your router doesn't support NAT|
|AdminFileName||serveradmin.xml||Server admin file name|
|DropOnDeath||0||0 = everything, 1 = toolbelt only, 2 = backpack only, 3 = delete all|
|DropOnQuit||0||0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only|
|EnemySenseMemory||60||Time, in seconds, that a zombie will pursue something that has been sensed.|
|EnemySpawnMode||3||0 = Disabled 0%, 1 = Very Low 50%, 2 = Low 75%, 3 = Medium 100%, 4 = High 125%, 5 = Very High 150%|
|EnemyDifficulty||0||0 = Normal, 1 = Feral|
|BlockDurabilityModifier||100||Percentage in whole numbers|
|LootAbundance||100||Percentage in whole numbers|
|LootRespawnDays||30||Days in whole numbers|
|LandClaimSize||7||Size in blocks that is protected by a keystone|
|LandClaimDeadZone||30||Keystones must be this many blocks apart (unless you are friends with the other player)|
|LandClaimExpiryTime||3||The number of days a player can be offline before their claims expire and are no longer protected|
|LandClaimDecayMode||0||Controls how offline players land claims decay. All claims have full protection for the first 24hrs. 0=Linear, 1=Exponential, 2=Full protection until claim is expired.|
|LandClaimOnlineDurabilityModifier||4||How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 32x|
|LandClaimOfflineDurabilityModifier||4||How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 32x|
|AirDropFrequency||72||How often airdrop occur in game-hours|
|AirDropMarker||false||Sets if a marker is added to map/compass for air drops.|
|MaxSpawnedZombies||60||Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients.|
|MaxSpawnedAnimals||50||If your server has a large number of players you can increase this limit to add more wildlife. Animals don't consume as much CPU as zombies.
NOTE: That this doesn't cause more animals to spawn arbitrarily: The biome spawning system only spawns a certain number of animals in a given area, but if you have lots of players that are all spread out then you may be hitting the limit and can increase it.
|SaveGameFolder||absolute path||Use this to override the default save game path|
To host a server just edit the startdedicated.bat file and the serverconfig.xml using notepad or notepad++. You shouldn't need to edit the startdedicated.bat. In the batch file you will see the following text:
@echo off rem rem Starts a dedicated server rem rem -quit, -batchmode, -nographics: Unity commands rem -configfile : Allows server settings to be set up in an xml config file. Use no path if in same dir or full path. rem -dedicated : Has to be the last option to start the dedicated server. echo|set /p="251570" > steam_appid.txt start 7daystodie -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated echo Wait until game started timeout 15 echo. echo Connect to the service interface. use 'shutdown' to stop the server echo. if exist "Tools/bin/putty.exe" ( "Tools/bin/putty.exe" -raw localhost 8081 ) else ( telnet localhost 8081 ) echo. echo Server is running in background, you can close this window echo. pause
If you are behind a router, you will need to tell your router that an incoming connection is meant for your server. This is called forwarding a port. You will need to port forward ports 25000-25003(UDP) so that others may join.
If router support UPnP - you can use this http://upnp-portmapper.sourceforge.net/
Don't know how to port forward? follow these instructions:
- Go to this Site
- Select your router brand
- Select your router version (if your version is not there, pick the one closest to your version.)
- Select Minecraft (since 7 Days to Die is a new game it hasn't been added to the list of games/programs. Minecraft is pretty much the same except that you port forward 25000 to 25003 instead of 25565)
- Follow the instructions on the site
If you have completed these steps correctly, your friends should now be able to join.
Finding your own IP
To find the IP which your friends need to use go to this Site. There you will find your External IP. Send it to your friends and they should be able to join if you have already finished Port Forwarding (steps above) your router.
Looking for servers
If you are looking for a server to play on, you can find one on the current top servers list for 7 Days To Die here 7daystodie-servers.com or use the server browser on your game client.
- For computers on the same local network as the server you can connect to it by using its lan IP address, simply enter this and the chosen port number into the two boxes at the bottom of the games server browser screen.
- Too find the lan IP address "Go to start, click run or search, type cmd. In the window that opens type ipconfig. You'll see a list of information. You're looking for IP address."
Example: Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : home IPv4 Address. . . . . . . . . . . : 192.168.1.100 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1
Where mine says 192.168.1.100 that's the IP your server has.
- If your client and server are running on the same machine it is possible to use the loopback ip address, which is either accessed via "localhost" or 127.0.0.1
Renting a server
There are several companies/websites that allow you to rent a server from them. This rented server will reside in a datacenter and hosted by them.
These servers are mostly 24/7 servers. This is useful because you won't need to keep your computer running 24/7. You can rent servers to many different specifications, some may not be powerful enough to host a server. Generally, network connections at a datacenter far exceed what is available to residential ISPs, which will cut down on latency that you might experience hosting at home.
Managing a server
7D2D RAT - Remote Admin tool is a server manager software for managing a multiplayer server. Please see homepage at 7D2D RAT.
You can use the 7daystodie Server Manager by FrontRunnerTek (no longer updated as of A13) or CBSM(Cloud based server manager) which is the most current and used more now since FrontRunner stopped updating.
Below video walks through setting up a dedicated 7 Days to Die server using steamcmd.
Video below walks through setting up 7D2D RAT - Remote Admin tool, a Server Manager tool.
- Linux Server
- OSX Server
- Server: serverconfig.xml
- Server: serverconfig.xml
- Dedicated Server Providers