This is how you and your friends get onto your own Don't Starve Together server. The usual way is the server list in the game. If you can't find the server there, you connect straight to its address through the console.

Requirements

  • A running Don't Starve Together server with a Klei server token entered. Without a token the world does not start and nobody can join.
  • Don't Starve Together on Steam. Other players don't need access to your panel.
  • Server and game must be on the same version.

Find name, password and address in the panel

Open your server in the panel and go to Game settings › Server Variables. Under General server settings you'll find the values you need to join:

  • Server list name: Players find your server in the game under this name. Pick a name nobody else uses, so it stands out in the list.
  • Join password: Optional. Click Show to see the password that is set.
  • Klei server token: Must be filled in. The setup guide explains how to get one.

The address with port is at the top of the overview under Server address, for example server.example.com:15512. If you picked your own server address, IP address right below it shows the same connection in numbers, such as 203.0.113.10:15512. You need that one for the console route. After changing the name or password, click Save startup variables and restart the server.

Join through the server list

  1. Start Don't Starve Together and click Browse Games in the main menu.
  2. Type the name from Server list name into the search box.
  3. Select your server in the list and click Join.
  4. If the server has a password, the game asks for it. Enter the Join password.
  5. Pick a character and you're in the world.

A server that has just started needs a few minutes to show up in the list.

Connect directly through the console

Don't Starve Together has no address field in its menus. The direct route only exists through the in-game console, and the command expects the IP address in numbers. Take it from the IP address line in the panel: the IP comes before the colon, the port after it.

  1. Start the game and wait for the main menu to load.
  2. Open the console. Its key is listed in the options under Controls; the default is ~.
  3. Enter c_connect("IP address", port), with the IP in quotes and the port as a number, for example c_connect("203.0.113.10", 15512).
  4. If the server has a password, add it as a third value: c_connect("203.0.113.10", 15512, "yourPassword").
  5. Press Enter. The game connects to your server.

Share the details with other players

Send your friends the name from the server list and the password if there is one, for example on Discord. For the console route, give them the finished line with c_connect. How many players can be online at once is shown under Maximum players. Your plan sets this value.

Common problems

The server doesn't show up in the list. Check the panel console. If it says "Your Server Will Not Start" or E_INVALID_TOKEN, the Klei server token is missing or invalid. Enter a valid token and restart the server. If the server is running, reset the filters in Browse Games: a filter on game mode, mods or region can hide your server.

c_connect doesn't connect. Check that the IP address is in quotes and the port follows it without quotes, separated by a comma. Also check that you used the port from the panel and not the default port 10999. If the panel has no IP address line, find the IP like this: on Windows, open the Command Prompt, type nslookup followed by the address without the port, for example nslookup server.example.com, and press Enter. The numbers under "Address" in the second group of the answer are the IP address.

The password is rejected. Compare it with the Join password field in the panel. If you just changed it, restart the server once.

Nothing works after a game update. Server and game are not on the same version. Restart the server in the panel so it loads the new version.

Don't have a server yet? Don't Starve Together server hosting.