Linode: Don’t Starve Together Dedicated Servers

Don’t Starve Together is a multiplayer game written and published by Klei Entertainment, and is a multiplayer add on to their single-player game Don’t Starve.


Don’t Starve Together is sold on Steam, and requires a valid license. Therefore, we will use SteamCMD to download and maintain servers for games sold on steam. If the server is a 64-bit operating system, we need to download a few extra libraries in order to run SteamCMD.

Include 32 bit packages, update system, install required 32 bit packages.

sudo dpkg --add-architecture i386

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install lib32gcc1 lib32stdc++6 libcurl4-gnutls-dev:i386 screen

If you have a firewall running on your , add exceptions for SteamCMD:

sudo iptables -A INPUT -p udp- m udp --sport 4380 --dport 1025:65355 -j ACCEPT

sudo iptables -A INPUT -p udp -m udp --sport 10999 --dport 1025:65355 -j ACCEPT

sudo iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT

Install SteamCMD and Don’t Starve Together

Download, extract, and install SteamCMD.

mkdir steamcmd
cd steamcmd
tar -xvzf steamcmd_linux.tar.gz
rm steamcmd_linux.tar.gz

If the install was successful you should see a prompt like this:


Install Don’t Starve Together from the SteamCMD prompt:

login anonymous
force_install_dir ../dstserver
app_update 343050 validate

Once the download is complete, you should see this output:

Success! App '343050' fully installed.

Finally, exit SteamCMD. (quit)

Configuring Don’t Starve Together

Before you configure Don’t Starve Together, you should launch it at least once so that it can generate its configuration files:

cd ~/dstserver/bin

Once you see this output, the server has been successfully launched:

Telling Client our new session identifier: XXXXXXXXXXXXXXXX

ModIndex: Load sequence finished successfully. 

Reset() returning

You will see a error that looks similar to this:

[200] Account Failed (6): "E_INVALID_TOKEN"


!!!! Your Server Will Not Start !!!!


This is completely normal and we will fix this in the next step.

Press the CONTROL + C to quit the server. You will return to the linux command prompt.

Create a settings file for your Don’t Starve Together server in ~/.klei/DoNotStarveTogether/. Below is an example configuration file. You may use this and modify it as you need. Note that where several non-binary options exist, they are shown in this file delimited with a |, and numerical ranges are denoted with … Choose a single option.



default_server_name = A very nice server name

default_server_description = A very nice server description

server_port = 10999

server_password = password

max_players = 5

pvp = true | false

game_mode = endless | survival | wilderness

enable_autosaver = true | false

tick_rate = 30

connection_timeout = 8000

server_save_slot = 1

enable_vote_kick = true | false

pause_when_empty = true | false


dedicated_lan_server = false





autocompiler_enabled = true


Create a start script, with the following contents:

screen -S "DST Server" dontstarve_dedicated_server_nullrenderer

This script, when run, will execute the Don’t Starve Together server in a Screen session.

Make the script executable:

chmod +x ~/dstserver/bin/

Getting your Authentication Token

You will need Don’t Starve Together installed on your personal computer to get your token.

Open up the game on your computer. Once you reach the main menu, press the backtick key (`) on your keyboard. You will see a screen similar to this one:

If you’ve never before played the game, you first need to click on Play and create an account.

Copy the following string into the box at the bottom of the console:


Once you have done this, press ENTER on your keyboard. The console will close, and you can exit the game. Locate the file that has been generated in one of the following directories, depending on your operating system.

On Windows, the file is located in:

%USERPROFILE%/My Documents/Klei/DoNotStarveTogether/server_token.txt

On Linux:


On Mac OS X:


This file is your server token. Do not share it with anyone.

Upload the token file. (.klei/DoNotStarveTogether/)

Using the Server

Now that your server is installed and configured, it can be launched by running script from the ~/dstserver/bin/ directory. Please note that if your current working directory is not ~/dstserver/bin/ the game will fail to start:

cd ~/dstserver/bin/

Do not press the CONTROL + C keys while in the console unless you want to stop the server.

To detach from the screen session running the server console, press these two key combinations in succession:


To bring the console back, type the following command:

screen -r

To stop the server, bring back the console and press CONTROL + C.

Entering The Server

Now that you have installed and configured Don’t Starve together, you have your very own Don’t Starve Together server for you and your friends to play on. Your users can access the server by opening the server list and finding your server’s name, clicking Connect, and entering a password if you choose to set one.


Adding Mods

Don’t Starve Together Dedicated Server Mod Setup

Linode: Don’t Starve Together Dedicated Servers was originally published on Something Different