EN · $ USD
FiveM and Roleplay Servers

Can't Connect to a FiveM Server? How to Fix Connection Errors

7 min read Updated: OyunBulut technical team

In short

If you can't connect to a FiveM server, first figure out whose problem it is: if the server's http://IP:30120/info.json address won't open in a browser, the problem is server-side (server down, 30120 TCP/UDP closed in the firewall, wrong endpoint). If the address opens but only you can't join, the problem is on the player side: FiveM cache, DNS, VPN, antivirus or router.

In this guide
  1. Diagnose with one test: info.json
  2. Quick guide by error message
  3. Server-side fixes
  4. Player-side fixes
  5. Stuck on the loading screen and download problems
  6. A ready-made template for your support channel
  7. The effect of ping and location
  8. Next step

Fixing can't connect to FiveM server problems starts with figuring out whether the issue is on the server or on the player's PC. If no player can get in at the same time, the problem is almost certainly server-side; if only one or a few people can't join, it's on the player side. In this guide, we make that call with a single test, then fix errors like “connection timed out,” “failed handshake,” “failed to fetch info” and “server is not responding” side by side.

Diagnose with one test: info.json

Every FiveM server publishes a small info endpoint that can be read without joining the game. Open this address in a browser (replace the IP and port with your own server's):

http://SUNUCU_IP:30120/info.json
http://SUNUCU_IP:30120/players.json
  • If the page opens with JSON text: The server is running and its TCP port is open to the outside. The problem is most likely the UDP port or on the player side.
  • If the page doesn't open: The server is down, has crashed, a firewall is blocking the port or the server is listening on the wrong address. Move on to the server-side steps below.

Quick guide by error message

ErrorMost likely sideFirst check
Failed to fetch info / getinfo errorServerDoes info.json open? Is 30120 TCP open?
Connection timed outServer or networkIs 30120 UDP open? Is the server responding?
Failed handshakeServer (script) or player networkDo connection scripts finish the deferral?
Server is not respondingServerIs the server frozen? Are there hitch warnings in the console?
Server is fullServer settingThe sv_maxclients value
Only one player can't joinPlayerCache, VPN, antivirus, DNS

Server-side fixes

1. Is the server actually running?

In the txAdmin panel, check that the server status is “Online” and that there are no load errors in the console. If the server gets stuck during startup because of a resource, players can't connect; in that case, follow the FiveM “Couldn't Start Resource” and server won't start errors guide.

2. Endpoint settings

In server.cfg, make sure the server is listening on all interfaces:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_maxclients 48

Putting the server's external IP or 127.0.0.1 here is a common mistake that blocks outside connections. The TCP and UDP lines must use the same port. OneSync must be enabled for more than 32 slots.

If you run more than one FiveM server on the same machine, each one must use a different port, for example 30121 for the second server. In that case, players also need to connect with the port specified, as in connect IP:30121, and the new port must be opened in the firewall for both TCP and UDP. After changing the port, repeat the info.json test with the new port.

3. 30120 TCP and UDP in the firewall

FiveM uses TCP for server info and downloads, and UDP for game traffic. Opening only TCP is a classic mistake: info.json opens, but the player gets “timed out” on the loading screen.

# Windows VDS (PowerShell or CMD as administrator)
netsh advfirewall firewall add rule name="FiveM TCP" dir=in action=allow protocol=TCP localport=30120
netsh advfirewall firewall add rule name="FiveM UDP" dir=in action=allow protocol=UDP localport=30120

# Linux VDS (ufw)
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp

If you access txAdmin remotely, it's safer to open port 40120 only to your own IP. If you use a ready-made game panel, the provider has already opened the ports and you can skip this step.

4. Connection scripts stuck at the handshake

Whitelist, ban check and queue scripts defer the connection in the playerConnecting event. If a script exits because of an error without calling deferrals.done(), the player waits on the connecting screen and eventually times out. Test by disabling connection scripts one by one. If you're setting up Discord role-based access, the example in the FiveM whitelist system guide closes every code path correctly.

5. The server is freezing or overloaded

If you often see hitch warnings in the console, the server thread can't respond and connections are timing out. Find heavy scripts with resmon; on a server that's constantly hitting its memory and CPU limits, you need more resources. For small and mid-sized communities, OB-FIVEM-2 with 2 CPU cores and 4 GB DDR5 RAM comfortably handles a lean setup, and as your framework and addon content grow, you can move up to higher FiveM server plans.

6. A server under attack

If the server is running and the settings are correct, but players disconnect now and then and can't connect, your IP may be under attack. In that case, you need DDoS-protected infrastructure and a proxy setup that hides your server IP. Look for these clues to tell the signs of an attack:

  • If disconnects start at certain times, usually after a player is banned or after a dispute with a rival community, a targeted attack is likely.
  • If connections drop all at once while the server's CPU and memory usage are normal, the problem is in the network layer, not the server software.
  • If your server IP has been shared in public Discord channels, old server lists or on stream, your attack surface grows; use a domain name and a proxy instead of sharing the IP directly.

Player-side fixes

If info.json opens and other players can join, the problem is on the PC of the player who can't connect. Try these steps in order:

  1. Clear the FiveM cache. Close FiveM and delete the cache, server-cache and server-cache-priv folders in %localappdata%\FiveM\FiveM.app\data. Don't touch the game-storage folder, or the game files will be downloaded again.
  2. Connect directly by IP. Open the F8 console and type connect SUNUCU_IP:30120. If you can't join from the list but can join by IP, the problem is the server list, not the connection.
  3. Turn off VPNs and proxies. Some VPNs block or mangle UDP traffic.
  4. Antivirus and Windows Firewall: Allow inbound and outbound connections for the FiveM app; in third-party antivirus software, add the FiveM folder to the exclusions.
  5. Reset the DNS cache:
ipconfig /flushdns
netsh winsock reset

Restart the PC after netsh winsock reset.

  1. Restart your router and try a wired connection if you can. Wireless connections with packet loss can cause timeouts while loading.
  2. Don't run FiveM as administrator. This can break communication with other apps like Discord and stop the Discord identifier from coming through.

Stuck on the loading screen and download problems

If the player connects but the progress bar stalls or the connection drops while server resources are downloading, the problem is usually download size. Large addon vehicle and map packs mean downloads of hundreds of megabytes on first join. In that case:

  • Remove unused vehicle, clothing and map resources; each one makes first join take longer.
  • Optimize very large individual files (e.g. high-resolution textures); large file warnings in the console point to these files.
  • Before asking the player to clear their cache, ask them to try once more: if the first download was interrupted, the second attempt picks up where it left off.

The server's disk and network speed also directly affect first join. Infrastructure with NVMe disks and a 1G port connection makes a difference during launch hours, when many players are downloading resources at the same time.

A ready-made template for your support channel

On roleplay servers, connection complaints usually come down to the same questions. Pinning a template like the one below in your #support channel on Discord noticeably lightens your staff team's load:

If you can't join the server: 1) Close FiveM and delete the cache, server-cache and server-cache-priv folders. 2) Turn off your VPN. 3) Try joining by typing our IP address with the connect command in the F8 console. 4) If you still can't get in, post a screenshot of the error you got and the time it happened in this channel.

Asking the player for the exact error text and the time matters. With the time, you can find the matching entry in the server console and tell within minutes whether the problem really is on the player side. If several players report the same error at the same time, start looking for the problem on the server side right away.

The effect of ping and location

If the connection goes through but keeps dropping, the network path matters too. If most of your players are in Türkiye, hosting the server in Türkiye shortens the network path and reduces the risk of disconnects caused by international routing. For more detail, see the Türkiye-based game servers and the ping advantage article.

Next step

If you don't want to deal with port, endpoint and firewall settings on the server side, OyunBulut's FiveM server plans in Istanbul come ready with automatic setup and DDoS protection. For a new community, you can start with the OB-FIVEM-2 plan and move to a higher plan as your player count grows, and get help in Turkish by opening a support ticket for connection issues.

Frequently asked questions

What causes the failed to fetch info error in FiveM?

The player's client can't reach the server's info endpoint. The server is down, port 30120 TCP is closed or the server is listening on the wrong address; check by opening the info.json address in a browser.

info.json opens, but I can't join the game. Why?

The TCP port may be open while the UDP port is closed. Open 30120 UDP in the firewall; if the problem only affects you, check your cache, VPN and antivirus settings.

How do I clear the FiveM cache?

With FiveM closed, delete the cache, server-cache and server-cache-priv folders inside %localappdata%\FiveM\FiveM.app\data. Don't delete the game-storage folder.

The server doesn't show up in the list but I can join by IP. What's wrong?

The connection is healthy; the problem is with the listing. Check that the sv_master1 line isn't commented out and that the license key is valid.

Is the failed handshake error caused by the server?

It's usually caused by connection scripts on the server not finishing the deferral, or by the server being too overloaded to respond. If it only happens to one player, that player's network may also be a factor.

For this guide

Recommended plans

With automatic setup and DDoS protection, OB-FIVEM-2 is a straightforward start for new communities that want to launch a FiveM server in Istanbul without configuring everything from scratch.

OB-FIVEM-2

Recommended

4 GB DDR5 RAM

$11.01/mo

+VAT

  • Processor2 CPU
  • Disk50 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

2 GB DDR5 RAM

$7.86/mo

+VAT

  • Processor2 CPU
  • Disk40 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

6 GB DDR5 RAM

$15.73/mo

+VAT

  • Processor4 CPU
  • Disk60 GB NVMe
  • LocationIstanbul
  • DDoS
  • Automatic Setup

FiveM — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.