# How to Connect to Your Minecraft Server (/docs/minecraft/join-server)



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

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

Log in to the [XGamingServer Panel](https://panel.xgamingserver.com). Your server IP and port are shown on the **Network** tab. The default Minecraft Java port is **25565** (TCP).

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

<Steps>
  <Step>
    Launch Minecraft Java Edition [#launch-minecraft-java-edition]

    Open the game and select your profile/version. The client version **must match** your server version.
  </Step>

  <Step>
    Click Multiplayer [#click-multiplayer]

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

  <Step>
    Click Add Server [#click-add-server]

    Click **Add Server** at the bottom of the screen.
  </Step>

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

    | Field              | Value                            |
    | ------------------ | -------------------------------- |
    | **Server Name**    | Anything you want (just a label) |
    | **Server Address** | `123.45.67.89:25565`             |

    If your server uses the default port **25565**, you can omit it: `123.45.67.89`
  </Step>

  <Step>
    Save and join [#save-and-join]

    Click **Done**, then select your server in the list and click **Join Server**.
  </Step>
</Steps>

> **Tip:** Add your server to favorites so you don't have to re-enter the address each time.

Required Ports [#required-ports]

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

Can't Connect? [#cant-connect]

| Problem                                   | Fix                                                                                                                                                             |
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"Can't connect to server"**             | Verify the IP and port. Check the server is running in the panel **Console**                                                                                    |
| **"Outdated server" / "Outdated client"** | Your game version must match the server version. See [Switch Version](/docs/minecraft/switch-version) or [Allow Any Version](/docs/minecraft/allow-any-version) |
| **"Failed to verify username"**           | `online-mode=true` requires a legitimate Minecraft account. Cracked clients are rejected                                                                        |
| **"Connection timed out"**                | Firewall blocking port 25565 — check **Network** in the panel                                                                                                   |
| **"You are not whitelisted"**             | Ask an admin to run `whitelist add YourName` in **Console**. See [Whitelist Setup](/docs/minecraft/whitelist-setup)                                             |
| **"Server closed"**                       | The server crashed or stopped. Check **Console** for errors                                                                                                     |

Use a Custom Domain [#use-a-custom-domain]

To use `play.yourdomain.com` instead of an IP, set up an SRV record. See [SRV Record Setup](/docs/minecraft/srv-record).

Related Guides [#related-guides]

* [Server Configuration](/docs/minecraft/server-properties)
* [SRV Record / Custom Domain](/docs/minecraft/srv-record)
* [Whitelist Setup](/docs/minecraft/whitelist-setup)
* [Switch Server Version](/docs/minecraft/switch-version)
