Server

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.

## How to host a server

### Serverconfig.xml

This is a table for the serverconfig.xml file that comes with 7 Days to Die as of A20.6.

Only change the data in the "value=" part of the file, otherwise, it will not work.

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:

startdedicated.bat

```
@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

```

## Finding your Public IP

To find your Public IP Address which your friends need to use to connect to your dedicated server search "my ip" in any major search engine. Send it to your friends and they should be able to join if you have already finished Port Forwarding.

## Looking for servers

If you are looking for a server to play on, you can find one on the 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."
```
  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
## Automated Installation via AMP

AMP is a popular game server management panel you can run on your own PC/server that supports 7 Days to Die and makes it easier to get the server going from its web interface. You can run it on both Windows and Linux. AMP also makes it possible to host 7 Days servers on ARM systems such as Oracle Cloud (including their free tier)

Once you have AMP itself up and running (Tutorial and Guide), click "Create Instance" and then select "7 Days to Die" from the list of games. Once you've done that, select "Create Instance".

After that, double click the new 7 Days to Die instance to manage it and select "Update" from the status screen. This will download the 7 Days to Die server and required files. You can take a moment at this point to look through the configuration and set up the server as you please.

Once the download is complete you can hit Start and after a few moments the server will start up. Once the startup has completed you can connect as normal.

## Renting a server

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.

Dedicated Server Providers

## Managing a server

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.

1. Botman - Website - Forum thread
	* *Notes*: Website says it's A20 compatible, and still has A16-A19 compatibility available
2. CSMM - Cloud hosted server manager - Website - Forum thread
	* *Notes*: A20 compatible as of v1.27.0
3. RAT Server Manager - Website - Forum thread
	* *Notes*: A20 compatible as of RAT 3
4. ServerTools- Website - Forum thread
	* Notes: As of Version 20.5.2, it is compatible with A20

## Video Tutorials

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!

How do you Admin your server? Here's how to manage it on a Hosted Platform:

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

* Linux Server
* OSX Server
* Server: serveradmin.xml
* Server: serverconfig.xml
* Dedicated Server Providers

## References

1. ↑ CSMM Github Release Notes
2. ↑ Server Tools Forum Thread