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
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
| Error | Most likely side | First check |
|---|---|---|
| Failed to fetch info / getinfo error | Server | Does info.json open? Is 30120 TCP open? |
| Connection timed out | Server or network | Is 30120 UDP open? Is the server responding? |
| Failed handshake | Server (script) or player network | Do connection scripts finish the deferral? |
| Server is not responding | Server | Is the server frozen? Are there hitch warnings in the console? |
| Server is full | Server setting | The sv_maxclients value |
| Only one player can't join | Player | Cache, 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 48Putting 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/udpIf 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:
- Clear the FiveM cache. Close FiveM and delete the
cache,server-cacheandserver-cache-privfolders in%localappdata%\FiveM\FiveM.app\data. Don't touch thegame-storagefolder, or the game files will be downloaded again. - 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. - Turn off VPNs and proxies. Some VPNs block or mangle UDP traffic.
- 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.
- Reset the DNS cache:
ipconfig /flushdns
netsh winsock resetRestart the PC after netsh winsock reset.
- Restart your router and try a wired connection if you can. Wireless connections with packet loss can cause timeouts while loading.
- 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.