# How To Connect to Your FiveM Server (/docs/fivem/connect-to-your-server)



Here is how to connect to your FiveM server. Make sure you have [created a license key](/docs/fivem/create-license-key) first.

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

<div className="fd-steps">
  <div className="fd-step">
    Get Your Server IP [#1-get-your-server-ip]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your FiveM server. Your server IP and port are displayed on the **Dashboard**.
  </div>

  <div className="fd-step">
    Open FiveM [#2-open-fivem]

    Launch the FiveM client. If you do not have it installed, download it from [https://fivem.net/](https://fivem.net/).
  </div>

  <div className="fd-step">
    Direct Connect [#3-direct-connect]

    Press **F8** to open the console, or click the **Direct Connect** button on the main screen. Enter your server's IP and port (e.g., `123.456.789.0:30120`) and click **Connect**.
  </div>
</div>

Connecting via the Server Browser [#connecting-via-the-server-browser]

<div className="fd-steps">
  <div className="fd-step">
    Open the Server Browser [#1-open-the-server-browser]

    In the FiveM client, click **Play** to open the server browser.
  </div>

  <div className="fd-step">
    Search for Your Server [#2-search-for-your-server]

    Use the search bar to find your server by name. You can also filter by game type, map, and player count.
  </div>

  <div className="fd-step">
    Join the Server [#3-join-the-server]

    Select your server and click **Connect**. If a password is set, you will be prompted to enter it.

    > 💡 **Tip:** You can add your server to favorites in the FiveM client for quick access. Right-click the server in the browser and select **Add to Favorites**.

    > 📝 **Note:** The default FiveM port is `30120`. Make sure to use the correct port shown on your panel Dashboard.
  </div>
</div>
