background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategorier

Don't Starve Together Server Setup


This guide walks you through setting up and configuring your Don't Starve Together dedicated server on Legion Hosting, from obtaining your Klei server token through server configuration, game modes, caves, world generation, and connecting. For mod installation, see DST Mod Installation. For admin commands, see DST Admin Commands. For common issues, see DST Troubleshooting.

1. Getting a Server Token

Don't Starve Together requires a Klei server token to authenticate your dedicated server. Without a valid token, the server will not start.

Step 1 — Log In to Your Klei Account

Visit accounts.klei.com and log in with the account that owns Don't Starve Together. You can sign in with Steam, PSN, Xbox, or a standalone Klei account.

Step 2 — Navigate to Game Servers

Once logged in, click on Games in the top navigation bar, then select Don't Starve Together. On the game page, find and click the Game Servers tab.

Step 3 — Generate a New Token

Click the Add New Server button. Give your server a friendly name (this is just for your reference on the Klei site) and click Add New Server to confirm. Your new token will appear — it looks like a long string of characters starting with pds-g^.

Step 4 — Copy and Apply the Token

Copy the entire token string. In GPanel, navigate to your server's Startup tab and paste the token into the Cluster Token field. Alternatively, you can place it in the cluster_token.txt file in your server's root directory.

Keep your token private. Anyone with your server token can impersonate your server. If you suspect your token has been compromised, delete it on the Klei website and generate a new one.
Your server will not start without a valid token. If you see authentication errors in your console, verify that your token is correctly pasted with no leading or trailing spaces.

2. Server Configuration

The easiest way to configure your server is through the Startup tab in GPanel. The following variables are available:

Variable Description Example
Cluster Token Your Klei server authentication token (required) pds-g^KU_abc123...
Cluster Name The name players see in the server browser My DST Server
Cluster Description A short description shown in the server browser Friendly survival server!
Game Mode The game mode for the server (see section 3) survival
Max Players Maximum number of simultaneous players 6
Cluster Password Password required to join (leave blank for public) mypassword

After changing any startup variables, click Save and then Restart your server for the changes to take effect.

3. Game Modes

Don't Starve Together offers three distinct game modes, each changing how death and respawning work:

Mode Death Behavior Revive Method Best For
Survival Dead players become ghosts. If all players are dead, the world resets. Touch Stones, Life-Giving Amulets, Meat Effigies (limited uses) Players who want a challenging, high-stakes experience
Endless Dead players become ghosts. The world never resets from deaths. All Survival methods plus unlimited respawn at the Florid Postern (with a max-health penalty) Casual players, building-focused groups, new players
Wilderness Dead players are fully removed. No ghosts. Players respawn at a random location with a fresh inventory PvP-oriented servers, hardcore players
Recommendation: If you are new to hosting a DST server, Endless mode is the most forgiving option. You can always change the game mode later by updating the startup variable and restarting.

4. cluster.ini Configuration

For more advanced configuration, you can edit the cluster.ini file directly. This file is located in your server's root directory and controls cluster-wide settings. Access it via the File Manager in GPanel or through SFTP.

[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true

[NETWORK]
cluster_name = My DST Server
cluster_description = A friendly survival server
cluster_password =
cluster_language = en

[MISC]
console_enabled = true

[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1

Key Settings Explained

Setting Description Default
game_mode Server game mode: survival, endless, or wilderness survival
max_players Maximum number of concurrent players 6
pvp Enable or disable player-versus-player combat false
pause_when_empty Pause the world simulation when no players are connected true
cluster_password Password to join; leave blank for a public server (empty)
shard_enabled Required for caves support (see section 5) false
console_enabled Allow the in-game console for admins true
Note: If you set values through both the GPanel Startup tab and the cluster.ini file, the Startup tab values typically take priority. Use one method or the other to avoid confusion.

5. Caves Setup

Don't Starve Together uses a shard architecture where the Overworld and Caves run as separate server instances that communicate with each other. On Legion Hosting, caves support may be available depending on your plan.

Master/Caves Architecture

  • Master Shard — The Overworld (surface). This is the primary server instance that players connect to.
  • Caves Shard — The underground caves. This runs as a secondary instance that the master shard communicates with internally.

Enabling Caves

To enable caves, ensure the following settings are in your cluster.ini:

[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1

Each shard has its own server.ini file. The Master shard's server.ini (located in the Master/ folder) should contain:

[SHARD]
is_master = true

[STEAM]
master_server_port = 27018
authentication_port = 8768

The Caves shard's server.ini (located in the Caves/ folder) should contain:

[SHARD]
is_master = false
name = Caves

[STEAM]
master_server_port = 27019
authentication_port = 8769
Resource usage: Running caves effectively doubles the server's resource consumption. If you experience performance issues with caves enabled, consider upgrading your server plan or contacting support.

6. World Generation

You can customize world generation settings to change the frequency of resources, creatures, seasons, and biomes. World generation settings are stored in worldgenoverride.lua files inside each shard's directory (Master/ and Caves/).

Example worldgenoverride.lua (Overworld)

return {
    override_enabled = true,
    preset = "SURVIVAL_TOGETHER",

    overrides = {
        -- Resources
        flint = "often",            -- "never", "rare", "default", "often", "always"
        rocks = "often",
        trees = "default",
        berrybush = "often",

        -- Creatures
        spiders = "default",
        hounds = "less",            -- "never", "less", "default", "more", "always"

        -- Season length
        autumn = "longseason",      -- "noseason", "shortseason", "default", "longseason"
        winter = "shortseason",
        spring = "default",
        summer = "default",

        -- World size and branching
        world_size = "large",       -- "small", "medium", "default", "large", "huge"
        branching = "default",      -- "never", "least", "default", "most"
    },
}

Example worldgenoverride.lua (Caves)

return {
    override_enabled = true,
    preset = "DST_CAVE",

    overrides = {
        mushtree = "often",
        bunnymen = "often",
        worms = "less",
        cave_spiders = "default",
        world_size = "default",
    },
}
World regeneration required: Changes to worldgenoverride.lua only take effect when a new world is generated. To apply changes, you must delete the existing save data and restart the server. Back up your save files first if you want to preserve them.

7. How to Connect

There are two ways to connect to your Don't Starve Together server:

Method 1 — Browse Games (Recommended)

  1. Launch Don't Starve Together and click Play.
  2. Select Browse Games from the main menu.
  3. Use the search bar at the top to search for your server's Cluster Name.
  4. Click on your server in the results and click Join.
  5. If your server has a password, enter it when prompted.

Method 2 — Direct Connect via Console

  1. Launch Don't Starve Together and click Play.
  2. Press the ~ (tilde) key to open the console.
  3. Type the following command, replacing the IP and port with your server's details from GPanel:
c_connect("YOUR_SERVER_IP", YOUR_SERVER_PORT)

If your server requires a password:

c_connect("YOUR_SERVER_IP", YOUR_SERVER_PORT, "YOUR_PASSWORD")
Finding your server details: Your server IP and port are displayed on the main page of your server in GPanel.
Server not showing up? It can take a few minutes for a newly started server to appear in the server browser. Make sure your server is fully started (check the console for "Sim paused" or similar ready messages). Also verify your region filter in the Browse Games screen is not excluding your server's location.

Related Articles

Need Help?

If you run into an issue not covered here, submit a support ticket and include your server ID, a description of the problem, and any relevant console output from GPanel.


Var denne artikkelen nyttig?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.