I am trying to create a game server for the game 7 Days to Die but I am running into a problem. This is the file I was told to use when starting the server.

rem Starts a dedicated server
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.

start 7DaysToDie -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated

REM wait until game started
timeout 10

REM connect to the service interface. use 'shutdown' to stop the server
if exist "Tools/bin/putty.exe" (
 "Tools/bin/putty.exe" -telnet localhost 8081
    ) else (
     telnet localhost 8081


I have looked online but no one seems to know the solution to the problem I am having. From what I understand I want to use the telnet protocol to connect to localhost on port 8081. I get the error "Could not open connection to the host, on port 8081". I have enabled the telnet client feature in windows 7. I also read online that I had to enable the telnet service in services.msc but I do not see the telnet service there. Why is the connection failing?

  • The telnet client is a client, not a server. You don't want to be running a telnet server, you're just using the client to test a connection to the game server. Does putty exist in the folder specified? When you run the batch script, what happens? – TZHX Oct 9 '14 at 14:20
  • I have tried putting putty into the correct folder and it gives me a fatal error saying "Connection refused". I have also tried disabling windows firewall and I get the same thing. – Skynet Oct 9 '14 at 14:37
  • Does the 7DaysToDie program start? – TZHX Oct 9 '14 at 14:48
  • Yes, the program starts. – Skynet Oct 9 '14 at 21:54

The default batch file is really poorly written, to start off with... if you're not familiar with telnet (or putty), or you don't want it, it's probably safe to comment that out and just use a manual client connection (ie. Put "REM" in front of each line, then fire up putty or your preferred telnet client if you want to connect to the control port).

For the most part, all the critical pieces are in your serverconfig.xml file. For example, the telnet configuation:

<property name="TelnetEnabled"  value="true"/>  <!-- Enable/Disable the telnet -->
<property name="TelnetPort"     value="8081"/>  <!-- Port of the telnet server -->
<property name="TelnetPassword" value="mypassword"/>    <!-- Password to gain entry to telnet interface -->

That just means you can generally use something like putty to login and issue administrative commands to the server (which is often nice). Note: you should sure sure to change the password before using the configuration.

Also, there's a component piece to it for your webbrowser... also in serverconfig.xml:

<property name="ControlPanelEnabled"    value="true"/>          <!-- Enable/Disable the control panel -->
<property name="ControlPanelPort"       value="8080"/>          <!-- Port of the control panel webpage -->
<property name="ControlPanelPassword"   value="mypassword"/>    <!-- Password to gain entry to the control panel -->

Again, change the password, but that will allow you to just connect a webbrowser to that port to monitor your server... something like http://localhost:8080/ should work (or replace localhost with your actual IP or hostname).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.