keepcalculator

06 Numbers and Powers

How to Host a Don’t Starve Together Server

Card No. 06·73355 · Updated · Standard formula, shown below

This guide walks you through hosting your own Don’t Starve Together (DST) dedicated server, giving you and your friends a persistent world that runs even when you’re offline. You’ll learn the two main methods—using the in-game hosting option for quick sessions and setting up a dedicated server for 24/7 play—plus how to configure mods, set passwords, and fix common issues. Before you start, make sure you own Don’t Starve Together on Steam and have a computer that can run the game (or a spare machine for a dedicated server).

What You’ll Need

  • A copy of Don’t Starve Together on Steam (the server files are free via SteamCMD, but you need the game to generate world data).
  • Steam account with Steam Guard enabled (required for dedicated servers).
  • At least 2 GB of free RAM and a stable internet connection with moderate upload speed (5 Mbps or more for 4–6 players).
  • Optional: a second computer or a cloud VPS if you want a 24/7 server that doesn’t affect your gaming PC.

Step-by-Step

Method 1: Quick In-Game Hosting (Temporary)

  1. Launch Don’t Starve Together from Steam and select Host Game from the main menu.
  2. Choose New World to generate a fresh map, or Load World to continue an existing save.
  3. Configure your world settings: world size, season length, boss spawns, and whether to enable PvP or Creative Mode. Leave defaults if unsure.
  4. In the Server Settings tab, set a Server Name, Server Password (optional), and choose Player Limit (max 6 for most hosts).
  5. Enable Offline Mode if you want only LAN play, or leave it off for online play.
  6. Click Create World. The game will generate the world and start hosting. Your friends can join via the server browser or by entering your Steam invite.
  7. To keep the world running while you’re away, you’ll need to switch to a dedicated server (Method 2).

Method 2: Dedicated Server via SteamCMD (Persistent)

  1. Download SteamCMD from Valve’s official site and extract it to a folder (e.g., C:\steamcmd).
  2. Open a command prompt (Windows) or terminal (Linux/Mac) and navigate to the SteamCMD folder.
  3. Run steamcmd and log in anonymously: type login anonymous and press Enter.
  4. Set the install directory and download the DST dedicated server files. For Windows: force_install_dir C:\dstserver then app_update 343050 validate. For Linux/Mac: use a path like /home/user/dstserver.
  5. Wait for the download to complete (about 1–2 GB). Exit SteamCMD by typing quit.
  6. Navigate to the server folder and create a cluster directory. Inside it, create a text file named cluster.ini with the following content (adjust as needed):
cluster.ini example:
[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true

[NETWORK]
cluster_description = My DST Server
cluster_name = My Server
cluster_password = secret
lan_only_cluster = false

[MISC]
console_enabled = true
  1. Create a Master folder inside cluster. Inside it, create a server.ini file with:
server.ini example:
[NETWORK]
server_port = 11000

[SHARD]
shard_enabled = true
is_master = true
  1. Create a Caves folder inside cluster (if you want caves). Inside it, create a server.ini with:
server.ini example:
[NETWORK]
server_port = 11001

[SHARD]
shard_enabled = true
is_master = false
  1. Generate a world by launching the server once. In the server folder, run the start script (e.g., start_dedicated_server.bat on Windows, or ./dontstarve_dedicated_server_nullrenderer on Linux). It will create world files. Stop it after a few seconds.
  2. Edit the world generation settings in the generated cluster.ini and worldgenoverride.lua files if you want custom settings. For a simple default world, leave them as is.
  3. Restart the server. It will now generate the world and become available. You’ll see a message like “Server started” in the console.
  4. To keep it running 24/7, use a screen/tmux session on Linux or run the batch file on Windows and keep the console open. For a VPS, consider using a service like systemd.
  5. Your friends can find your server by searching for its name in the server browser, or by using the Connect button in the game with your IP and port (default 10999 for master).

Common Mistakes

  • Not opening ports: The default DST ports are 10999 (master) and 11000 (caves). You must forward these on your router to your server’s local IP.
  • Using the wrong cluster path: On Windows, the server looks for clusters in Documents\Klei\DoNotStarveTogether\ unless you set a custom path. Make sure your cluster folder is in the right place.
  • Forgetting to set a password: Without a password, anyone can join. Set one in cluster.ini.
  • Mismatched mods: If you use mods, they must be installed on the server and clients. Use the mods folder and enable them in modoverrides.lua.
  • Not updating the server: After game updates, run app_update 343050 validate again to keep the server compatible.

Tips

  • Use a dedicated machine or VPS for 24/7 hosting to avoid performance issues on your gaming PC.
  • Back up your cluster folder regularly (world saves are stored there).
  • Set pause_when_empty = true to pause the world when no players are online, preventing starvation and attacks.
  • For larger groups, increase max_players but note that performance may suffer on low-end hardware.
  • Use the c_rollback() console command to undo griefing or accidental deaths.

Troubleshooting

  • Server not showing in browser: Check that ports are forwarded, the server is running, and lan_only_cluster is false. Try connecting directly via IP.
  • Friends can’t join: Ensure your firewall allows inbound connections on the DST ports. Also verify your router’s port forwarding is correct.
  • Server crashes on startup: Read the console log. Common causes: missing cluster files, incorrect server.ini, or a corrupt world. Delete the world and regenerate.
  • Mods not working: Make sure mods are enabled in modoverrides.lua and that all clients have the same mods installed and enabled.
  • High ping or lag: Move the server closer to players, reduce max_players, or upgrade your internet upload speed.

Frequently Asked Questions

Do I need to own the game to host a dedicated server?

You need the game to generate world files, but the server itself runs via SteamCMD without owning the game. However, you must have a Steam account with Steam Guard enabled.

Can I host a server on a Mac?

Yes, the dedicated server files are available for macOS via SteamCMD. Follow the same steps but use the Mac-compatible binary.

How many players can join?

The default max is 6, but you can set it higher. Performance depends on your hardware and internet. Most hosts stick to 6–12.

Can I run both surface and caves on one server?

Yes, by creating a Caves shard folder. The server will run two processes (master and caves) on the same machine.

How do I update my server after a game patch?

Run SteamCMD again with app_update 343050 validate. Your world saves remain intact.

What is the default port for DST?

The master server uses port 10999, and caves use 11000. You need to forward both if you have caves enabled.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →