# How To Connect to Your Don't Starve Together Server (/docs/dont-starve-together/connect-to-your-server)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Here is how to connect to your Don't Starve Together server. Make sure you have [generated a cluster token](/docs/dont-starve-together/generate-token) first or the server will not be running.

Connecting via the In-Game Server Browser [#connecting-via-the-in-game-server-browser]

<Steps>
  <Step>
    Launch Don't Starve Together [#launch-dont-starve-together]

    Open Don't Starve Together through Steam.
  </Step>

  <Step>
    Open Browse Games [#open-browse-games]

    From the main menu, click **Browse Games**.
  </Step>

  <Step>
    Find Your Server [#find-your-server]

    Search for your server by name using the search bar. You can also filter by game mode, season, and other options. Make sure the **Platform** filter is set to show dedicated servers.
  </Step>

  <Step>
    Join the Server [#join-the-server]

    Select your server and click **Join**. If a password is set, you will be prompted to enter it.
  </Step>
</Steps>

Connecting via Direct Connect [#connecting-via-direct-connect]

<Steps>
  <Step>
    Get Your Server IP [#get-your-server-ip]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your Don't Starve Together server. Your server IP and port are displayed on the **Dashboard**.
  </Step>

  <Step>
    Use the Console to Connect [#use-the-console-to-connect]

    In Don't Starve Together, open the console by pressing the tilde key (`~`). Type the following command:

    ```
    c_connect("YOUR_IP", YOUR_PORT)
    ```

    Replace `YOUR_IP` with your server's IP address and `YOUR_PORT` with the port number.
  </Step>
</Steps>

> 📝 **Note:** If your server does not appear in the browser, make sure the cluster token is configured correctly. See the [Generate Token](/docs/dont-starve-together/generate-token) guide.

> 💡 **Tip:** If you set a password on the server, add it as a third parameter: `c_connect("YOUR_IP", YOUR_PORT, "yourpassword")`
