Current game stage: 1
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[edit | edit source]
Serverconfig.xml[edit | edit source]
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||19523||Port you want the server to listen on.|
|ServerIsPublic||true||Should this server register to master server|
|ServerName||Friend World||Whatever you want the name to be.|
|ServerPassword||qqeeww113322||Password to gain entry to the server|
|ServerMaxPlayerCount||12||Maximum Concurrent Players|
|ServerDescription||A 7 Days to Die server||Whatever you want the description to be.|
|Website URL for the server|
|GameWorld||Navezgane||Navezgane, Random Gen|
|GameName||auepl123||Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED|
|GameDifficulty||3||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||off||cheat mode on/off|
|DayNightLength||60||real time minutes per in-game day: 50 minutes|
|DayLightLength||18||in game hours the sun shines per day: 18 hours daylight per day|
|PlayerKillingMode||2||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||1||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||Enable||Enable/Disable the control panel|
|ControlPanelPort||19533||Port of the control panel webpage|
|ControlPanelPassword||7GoTaAft||Password to gain entry to the control panel|
|TelnetEnabled||false||Enable/Disable the telnet|
|TelnetPort||19543||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 = nothing|
|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||2||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||300||Percentage in whole numbers|
|LootRespawnDays||3||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 the claim is expired.|
|LandClaimOnlineDurabilityModifier||0||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||1||How often airdrop occur in game-hours|
|AirDropMarker||false||Sets if a marker is added to the 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||200||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||E:\保存七日殺路徑||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
Port Forwarding[edit | edit source]
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[edit | edit source]
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[edit | edit source]
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.
- To 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 the IP address."
Example: Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix. : home IPv4 Address. . . . . . . . . . . : 192.168.1.102 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[edit | edit source]
There are several companies/websites that allow you to rent a server from them. This rented server will reside in a data center 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[edit | edit source]
Before setting up a server manager, it is strongly recommended to install Alloc's Server Fixes. Website
Then you have a large selection of tools to choose from for managing your server.
- 7 Days to Die Server Tool - Website Notes: Works with current version of client/server a16.4 and a17.2.
Video Tutorials[edit | edit source]
How to set a server up through the Steam Application:
Video walkthrough of using a Hosted (game server hosting company) Server, how to select options and get it up and running!
Below video walks through setting up a dedicated 7 Days to Die server using steamcmd.
The video below walks through setting up the 7D2D RAT - Remote Admin tool, a Server Manager tool.
See also[edit | edit source]
- Linux Server
- OSX Server
- Server: serverconfig.xml
- Server: serverconfig.xml
- Dedicated Server Providers