# How to Connect to Your Terraria Server (/docs/terraria/join-server)



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

Find Your Server Address [#find-your-server-address]

Find your server IP and port on the **Network** tab in the [XGamingServer Panel](https://panel.xgamingserver.com). The default Terraria port is **7777** (TCP).

Connect to Your Server [#connect-to-your-server]

<Tabs items={['Direct IP (Recommended)', 'Steam Friends']}>
  <Tab value="Direct IP (Recommended)">
    <Steps>
      <Step>
        Launch Terraria [#launch-terraria]

        Open Terraria from Steam and pick a character.
      </Step>

      <Step>
        Click Multiplayer [#click-multiplayer]

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

      <Step>
        Click Join via IP [#click-join-via-ip]

        Click the **Join via IP** button.
      </Step>

      <Step>
        Enter the address [#enter-the-address]

        Type your server IP, then enter the port (default `7777`):

        ```
        123.45.67.89
        7777
        ```
      </Step>

      <Step>
        Connect [#connect]

        If the server has a password, you'll be prompted to enter it.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Steam Friends">
    If you're playing with Steam friends and the server owner has Steam friends list enabled:

    <Steps>
      <Step>
        Click Multiplayer > Join via Steam [#click-multiplayer--join-via-steam]
      </Step>

      <Step>
        Pick the friend [#pick-the-friend]

        Select the friend running the server from your friends list.
      </Step>

      <Step>
        Connect [#connect-1]

        Enter the password if prompted.
      </Step>
    </Steps>

    > Steam Friends connect only works for friends — not for public servers.
  </Tab>
</Tabs>

Required Ports [#required-ports]

| Port     | Protocol | Purpose      |
| -------- | -------- | ------------ |
| **7777** | TCP      | Game traffic |

Can't Connect? [#cant-connect]

| Problem               | Fix                                                                                     |
| --------------------- | --------------------------------------------------------------------------------------- |
| "Lost connection"     | Check that the IP and port match what's in the panel **Network** tab                    |
| "Wrong password"      | Verify the password in `serverconfig.txt` (case-sensitive)                              |
| Server not responding | Check **Console** in the panel — server should show "Listening on port 7777"            |
| Modded client         | If the server runs **tModLoader**, your client must also be on tModLoader (not vanilla) |
| Version mismatch      | Both server and client must be on the exact same Terraria version                       |

Related Guides [#related-guides]

* [Server Configuration](/docs/terraria/server-config)
* [Set a Password](/docs/terraria/server-password)
