# FiveM Server Ports Explained (/docs/fivem/server-ports)



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

Default Ports [#default-ports]

FiveM uses a single port for both TCP and UDP traffic:

| Port      | Protocol  | Purpose                                                      |
| --------- | --------- | ------------------------------------------------------------ |
| **30120** | TCP + UDP | Game traffic, server browser listing, and client connections |

Both TCP **and** UDP must be open on port 30120.

How Ports Are Configured [#how-ports-are-configured]

In `server.cfg` (via **Files** in the [XGamingServer Panel](https://panel.xgamingserver.com)):

```ini
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
```

To change the port, update the number in both lines to match. The port must also be allocated in your panel's **Network** tab.

Verify Your Port Is Open [#verify-your-port-is-open]

From any browser outside your network, visit:

```
http://YOUR_SERVER_IP:30120/info.json
```

If the page loads with server info JSON, the port is open and the server is reachable. If it doesn't load, the port is blocked.

Common Issues [#common-issues]

| Problem                                                | Fix                                                     |
| ------------------------------------------------------ | ------------------------------------------------------- |
| Server not reachable                                   | Verify port 30120 is allocated in **Network** tab       |
| Server not in browser but reachable via direct connect | Wait 5–10 minutes for the server list to index          |
| `info.json` doesn't load                               | Port is blocked — check firewall and Network allocation |

Related Guides [#related-guides]

* [Connect to Your Server](/docs/fivem/connect-to-your-server)
* [Server Not Listed](/docs/fivem/server-not-listed)
* [Server Configuration](/docs/fivem/configure-your-server)
