Don't Starve Together
Host a Don't Starve Together dedicated server on your PC
Steam dedicated server 343050, a Klei cluster token, forest on 10999 plus a second Caves process on 11000. Do not pin a build.
Updated 1 September 2026
Run Don't Starve Together on a PassThis is for someone who has never run a game server. You will put the official Don't Starve Together dedicated server on a Windows PC so friends can play even when you are not in the world. The PC has to stay on while people play.
Caves is not a tick box. It is a second program that has to be running at the same time as the forest. You will end up with two black windows: Forest (Master) on port 10999, and Caves on port 11000.
Do not pin an old build. When Steam updates Don't Starve Together, update this dedicated server the same way so friends can join.
1. Install the dedicated server, not the game
The game you play is Steam app 322330. The dedicated server is a different download: app 343050.
- Open Steam.
- At the top of your Library, open the dropdown that says Games. Tick
Tools. - Search
Don't Starve Together Dedicated Server. Install that, not the game itself. - Right-click it, Manage, Browse local files.
- Open the
bin64folder. You should seedontstarve_dedicated_server_nullrenderer_x64.exe. Leave this folder open. You will come back to it.
2. Get a cluster token from Klei
An online dedicated server will refuse to start without this. It proves you own the game. The name you type on Klei's page does not have to match your world.
- Open accounts.klei.com and log in with the Steam account that owns Don't Starve Together. If you already logged in, you can go straight to Game Servers for Don't Starve Together.
- Open Game Servers for Don't Starve Together.
- Type any Cluster Name. Click Add New Server.
- Copy the token. It is one long string. Copy all of it.
Keep that copy. You will paste it in a minute. Do not add spaces around it.
3. Make the cluster folder
- Open File Explorer. Click the address bar, paste
%USERPROFILE%\Documents\Klei\DoNotStarveTogether, press Enter. If the folders do not exist yet, createKleithenDoNotStarveTogetherunder Documents. - Inside that, create a folder named
Cluster_1. - Inside
Cluster_1, create two more folders namedMasterandCaves.
You should now have:
Documents\Klei\DoNotStarveTogether\Cluster_1\
cluster.ini
cluster_token.txt
Master\
Caves\The two files are next. Create them as you go.
4. Turn caves on in cluster.ini
- In
Cluster_1, right-click empty space, New, Text Document. Name itcluster.ini. Turn on file extensions if Windows hides.ini. - Open it in Notepad, paste this, then Save.
[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true
[NETWORK]
cluster_name = Friends
cluster_description =
cluster_password =
cluster_intention = cooperative
offline_cluster = false
[MISC]
console_enabled = true
[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 11001
cluster_key = friendsThe important line is shard_enabled = true. Without it, caves never start talking to the forest. master_port = 11001 is only for the two programs on this PC. Do not forward it on the router. Change cluster_name to whatever friends should see in Browse Games. Put a password in cluster_password if you want the world private.
5. Forest (Master) files
- In the
Masterfolder, createserver.iniand paste this:
[NETWORK]
server_port = 10999
[SHARD]
is_master = true
[STEAM]
master_server_port = 27018
authentication_port = 8768- In the same
Masterfolder, createworldgenoverride.luaand paste this:
return {
override_enabled = true,
preset = "SURVIVAL_TOGETHER",
}6. Caves files
Caves needs its own server.ini and a world file that says this shard is underground, not a second forest.
- In the
Cavesfolder, createserver.iniand paste this:
[NETWORK]
server_port = 11000
[SHARD]
is_master = false
name = Caves
[STEAM]
master_server_port = 27019
authentication_port = 8769- In the same
Cavesfolder, createworldgenoverride.luaand paste this:
return {
override_enabled = true,
preset = "DST_CAVE",
}7. Paste the token
- In
Cluster_1(next tocluster.ini), createcluster_token.txt. - Open it in Notepad. Paste only the token you copied. Nothing else. No extra spaces, no extra blank lines.
- Save and close.
8. Start both programs
- Go back to the
bin64folder from step 1. - Right-click empty space, New, Text Document. Name it
start.bat. - Open it in Notepad, paste this, then Save:
start "DST Forest" dontstarve_dedicated_server_nullrenderer_x64.exe -cluster Cluster_1 -shard Master -port 10999
start "DST Caves" dontstarve_dedicated_server_nullrenderer_x64.exe -cluster Cluster_1 -shard Caves -port 11000- Double-click
start.bat. Two black windows should open. - Wait until both finish loading. The first start can take a few minutes while it builds the worlds.
Leave both windows open while people play. If only the Forest window is running, sinkholes will not take anyone underground.
9. Open the ports so friends can reach you
Friends outside your house need two holes in your router: send ports 10999 and 11000 to this PC. Follow Port forwarding so friends can join for the Windows Firewall and router clicks. Use the Don't Starve Together row on that page (forest plus caves).
10. Friends join
- They open Don't Starve Together.
- Choose Browse Games. Search for the
cluster_nameyou set incluster.ini. - They must be on the same game build as this dedicated server. If Steam updated the game and you have not updated the dedicated server, they cannot join.
11. Save and stop
Type commands in the Forest window (the Master one).
c_save()saves without shutting down. Use this on Master only.c_shutdown()saves and stops that window. Type it in Forest, then in Caves if that window is still open.
Do not close the black windows with the X. That can skip a save.
If you turn caves off later
Stop the Caves window with c_shutdown(). The forest keeps running. The caves save stays on disk in the Caves folder. Start the Caves line in start.bat again when you want sinkholes to work. Do not delete that folder.
If you do not want the PC on
A hosted world does not need two windows or a router. omnipass.gg can run the dedicated server for you, so friends join without leaving a PC awake.