A Don't Starve Together server is made of a cluster and one or two shards (Master and Caves), and most problems come from the cluster token, the ports or the mod setup. This guide is based on the dedicated server wiki and the LinuxGSM documentation.
Checked 2026-11-17. The game and mod versions change, so check the current documentation before bigger changes. Our team sets the server up; in the client area you use the console, the file manager (browser and SFTP) and the backups.
1. Requirements and ports
- An online server needs a copy of the game (the token is tied to a Klei account); an offline server does not. Klei only provides server builds for Windows and Linux, in x86 and x86_64.
- The server talks over UDP. According to the wiki the -port value can be 1024 to 65535 for an online server and 10998 to 11018 for LAN; for server list problems the wiki mentions forwarding UDP port 10999.
- Each shard on one machine (Master, Caves) needs a different server_port, master_server_port and authentication_port. In the LinuxGSM example Master uses 11000/27018/8768 and Caves 11001/27019/8769.
- The player limit is max_players in the [GAMEPLAY] section of cluster.ini (1 to 64). The wiki does not give official RAM or CPU figures.
2. First start: token, cluster and shards
- Get a server token from your Klei account (accounts.klei.com, the game servers page) and put it in cluster_token.txt in the cluster folder. An online cluster refuses to run without it.
- The cluster folder (for example Cluster_1) holds cluster.ini; the Master and Caves folders each have their own server.ini. Both are mandatory.
- For caves the Caves shard needs the DST_CAVE preset in its worldgenoverride.lua, and cluster.ini needs shard_enabled = true in the [SHARD] section.
- Every shard is a separate process: the server starts from its bin folder with the -cluster and -shard arguments. The data root is set with -persistent_storage_root and -conf_dir.
- After starting, watch the console to see whether the shards connect and whether the server shows up in the list.
-persistent_storage_root GYOKER_MAPPA -conf_dir DST -cluster Cluster_1 -shard Master
-persistent_storage_root GYOKER_MAPPA -conf_dir DST -cluster Cluster_1 -shard Caves3. Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The server does not show in the list | UDP traffic does not reach the server, or the cluster is not running in online mode | Check the ports (section 1) and that a valid cluster_token.txt exists; the wiki mentions dstserverlist.appspot.com for checking |
| Account Failed (6): E_EXPIRED_TOKEN | The token file has extra, possibly invisible, characters at the end | Rewrite cluster_token.txt so that it contains only the token |
| libcurl-gnutls.so.4: cannot open shared object file (Linux) | The libcurl-gnutls package is missing | The package must be installed to match the 32 or 64 bit server build; our team handles this |
| Workshop mods do not download (ODPF failed entirely: 16) | The bundled steamclient.so may be broken | According to the wiki, copy the SteamCMD steamclient.so into the server lib32 and lib64 folders |
| Caves shows up as a separate world instead of part of Master | shard_enabled is not on, or the ports clash | Set shard_enabled = true in cluster.ini and give the shards different ports (this is how LinuxGSM runs two shards on one machine) |
| A mod does not activate | modoverrides.lua is missing the workshop- prefix, or the mod is enabled in one shard only | dedicated_server_mods_setup.lua uses the bare ID, modoverrides.lua uses workshop-ID; use the same mod list in the Master and Caves folders |
| Manually installed mods vanish after an update | The validate option can remove manually installed mods | When you have manual mods, leave out validate when updating (per the wiki) |
| The whitelist does not work properly | A known bug according to the wiki: only the last listed ID is respected | Check the contents of adminlist.txt and whitelist.txt (one User ID per line) and the whitelist_slots value |
4. Saves and updates
- By default the cluster lives in ~/.klei/DoNotStarveTogether on Linux (under Documents/Klei on Windows). The world and settings are together in the cluster folder, so back up that folder.
- In the client area you can use backups and restore; make a backup before updating or changing mods.
- The server is updated with the SteamCMD app_update command using app ID 343050; mods only update when their Workshop version changes.
- According to the wiki -only_update_server_mods updates only the mods and exits, and -skip_update_server_mods starts without checking mods.
5. Mods and admins
- Workshop mod IDs go into dedicated_server_mods_setup.lua as ServerModSetup("ID") (ServerModCollectionSetup for a collection). A manually added mod folder needs modinfo.lua and modmain.lua.
- Shards should normally use the same mods. Each shard downloads its own copy of v2 mods by default; -ugc_directory gives one shared copy.
- Admins: adminlist.txt holds one User ID per line (online IDs start with KU_). If the file is empty or missing, the token owner is the admin on an online server.
- whitelist.txt holds reserved slots and blocklist.txt holds bans.
6. Choosing a plan
- Load comes from the number of running shards (caves are a second process), the player count and the mods; Klei does not publish an official resource table.
- tick_rate can be set between 15 and 60 and the wiki recommends the default; raising it costs load.
- For a small group of friends without caves the entry plan is often enough; with caves, many mods or many players pick a bigger one. These are guidelines, not performance guarantees.



