Guide

FiveM CURL Error 28 and Connection Timed Out: How to Fix

Fix FiveM "CURL error code 28 (Timeout was reached)", CURL 56/52 and "connection timed out". Find out if it is your network or the server, then fix it.

Connection failed: Failed to fetch server variables. CURL error code 28 (Timeout was reached)
Failed to connect to 1.2.3.4 port 30120: Timed out - CURL error code 28 (Timeout was reached)
Recv failure: Connection was reset - CURL error code 56 (Failure when receiving data from the peer)

FiveM CURL error 28 means your client asked the server for its connection data over HTTP and got no answer in time. Cfx.re's own support article says CURL errors are usually network problems, either at the server host or on your connection, not a bug in FiveM. The fastest way to find out which side it is: try another server. If only one server fails, it is that server. If every server fails, it is your network.

Last checked: 3 August 2026

What does CURL error 28 mean in FiveM?

Joining a FiveM server happens in two stages, as described in the official proxy setup docs:

  1. HTTP stage (TCP). The client fetches /info.json from the server, sends a connect request to /client, gets a token and the server's endpoints, then downloads configuration and resources.
  2. Game stage (UDP). The client opens an ENet connection to the server over UDP and you load in.

CURL errors come from the first stage. CURL is the HTTP library the client uses, and the numbers are standard CURL codes:

  • 28 (Timeout was reached): nothing came back in time. The server is down, a firewall drops the packets, or a route between you and the server is broken.
  • 56 (Failure when receiving data from the peer) / "Connection was reset": the connection opened, then something cut it. Often a firewall, a filter, DPI (deep packet inspection, used by some ISPs to block traffic) or a proxy in front of the server.
  • 52 (Empty reply from server): the server accepted the connection and closed it without sending anything.

"Server connection timed out" messages during play, such as Client -> server connection timed out or Server->client connection timed out, come from the second stage. You got in, then the UDP traffic stopped. The triage below is the same, but UDP and packet loss matter more.

Is it just one server or all of them?

This one question decides almost everything.

  1. Try two or three other popular servers from the server browser.
  2. Try the FiveM test server that the official support article recommends: cfx.re/join/y4lg95.
  3. Note which fail and with which code.
ResultMost likely cause
Only one server failsThe server: offline, overloaded, firewalled, rate limiting you, or blocking your region
All servers failYour PC or network: firewall, VPN, router, DNS, ISP filtering
Fails on Wi-Fi, works on mobile hotspotYour router or home network
Works only with a VPNYour ISP or country blocks or filters the route

Check whether the server is online

Search for the server on the FiveM server list. If it is listed with players, it is up and other people are joining, which points to your side or to a block that only affects you. Its player history shows dips and gaps when it was down or restarting, so you can see whether a timeout lines up with a crash.

You can also paste its join link into the FiveM IP Finder to get the IP and port, then try connect 1.2.3.4:30120 from the F8 console. On the forum, some players report that connecting by IP worked when the browser failed (community-reported, not a fix for the root cause).

If the server is missing from the list, it is offline or not reachable from the Cfx.re list either. Wait, or tell the server's staff on their Discord.

Fixes for players

Do these in order and test after each one. Steps 1 to 3 come from the official Cfx.re support article; the rest are what players on forum.cfx.re report working.

  1. Allow FiveM through your firewall. In Windows Security, open Firewall & network protection, then "Allow an app through firewall", and allow FiveM. Third-party antivirus suites often have their own firewall; check that too.
  2. Turn off your VPN. The support article notes some VPNs cause CURL errors. One forum user fixed it by leaving a school VPN.
  3. On a school, work or dorm network, ask the admin. These networks often block game ports.
  4. Restart your router. Then try a mobile hotspot. If the hotspot works, the router or ISP line is the problem.
  5. Remove stale port forwards. If you once hosted a server, an old forward of port 30120 to your PC can break joining other servers. A forum user fixed CURL 28 by deleting those rules (forum.cfx.re/t/curl-error-code-28/1487999).
  6. Reset DNS and Winsock. Open Command Prompt as administrator, run ipconfig /flushdns and then netsh winsock reset (see below), and restart the PC. Some players also report that switching the network adapter's DNS to a public resolver helped.
  7. Check the NAT type. A "strict" NAT can block the game stage. Enable UPnP on the router or ask your ISP; you do not need to forward any port to join a server.
  8. If it works only with a VPN, your ISP or country is filtering the traffic. A forum helper describes this for CURL 52/56 in regions that use DPI (forum.cfx.re/t/5377511). Contact your ISP; there is no client setting to fix it.

The commands for step 6, in an administrator Command Prompt:

ipconfig /flushdns
netsh winsock reset

CURL 56 and 52 on one server only

If you get Recv failure: Connection was reset or CURL 52 on one server but others work, the server or its protection is closing your connection. Common reasons:

  • the server's firewall or DDoS filter flagged your IP,
  • the server blocks your country or your ISP's range,
  • a proxy in front of the server is misconfigured.

You cannot fix this from your PC. Send the server staff the exact error, the time and your country and ISP.

Fixes for server owners

If many players report CURL 28 or timeouts on your server, check these in order:

  1. Is FXServer running and listening? Look at the console. The default port is 30120, used for both TCP (the HTTP stage) and UDP (the game stage), set with endpoint_add_tcp and endpoint_add_udp in server.cfg.
  2. Are both TCP and UDP open? Opening only TCP gives you a server that shows up but drops players at loading. Check the OS firewall (Windows Firewall, ufw, iptables) and the host's network firewall.
  3. Home hosting? Check the router forward for 30120 TCP and UDP. Many ISPs put home lines behind CGNAT (carrier-grade NAT), which makes port forwarding impossible. A VPS or dedicated server avoids this. See the FiveM hosting guide.
  4. Behind a proxy or filter? The official proxy docs say the server proxy must forward raw TCP and UDP. If all players reach FXServer from your proxy's IP, set sv_proxyIPRanges to the proxy's ranges. Without it, the server's rate limiter sees one IP making all the requests.
  5. Overloaded server? A main thread that hitches for seconds cannot answer HTTP requests in time. See server thread hitch warning.
  6. Under attack? Sudden timeouts for everyone together with high inbound traffic point to a DDoS. See FiveM DDoS protection.
  7. Outdated server build. Forum helpers recommend a recent artifact. Old builds can be refused by the client.
  8. Domain and DNS. If players connect via a domain, check that its A record points to the current IP.

What usually doesn't help

Community-reported, from forum threads where these were tried first:

  • Reinstalling FiveM or verifying GTA V files. The error is in the network, not the game files.
  • Clearing the FiveM cache over and over.
  • Turning off antivirus while the Windows Firewall still blocks FiveM.
  • Buying a "FiveM fix" tool or a ping booster.

If nothing works

Post in the FiveM Client Support category on forum.cfx.re and include:

  • the full error text (copy it, not a phone photo if you can avoid it),
  • whether it happens on one server or all, and the server names,
  • whether the test server cfx.re/join/y4lg95 works,
  • whether a mobile hotspot or a VPN changes anything,
  • your country, ISP and Windows version,
  • what you already tried from this list.

Frequently asked questions

How do I fix CURL error code 28 in FiveM?

First check whether it happens on all servers or one. If all fail, allow FiveM through your firewall, turn off any VPN, restart your router and reset DNS with ipconfig /flushdns. If only one server fails, the problem is that server.

What does CURL error 28 Timeout was reached mean?

The FiveM client asked the server for its connection data and got no answer in time. Cfx.re says CURL errors are network problems at the server host or on your connection.

Why does FiveM say Failed to fetch server variables?

It is the same timeout during the HTTP stage of connecting. The server did not answer, or something between you and the server dropped the traffic.

What is FiveM CURL error 56?

"Failure when receiving data from the peer": the connection was opened and then reset. A firewall, DDoS filter, proxy or ISP filtering is the usual cause.

Why do I get server connection timed out in FiveM after a few minutes?

That happens after you have joined, in the UDP game stage. Unstable Wi-Fi, packet loss, a VPN or a server that hitches or is under attack are common causes. Test on a wired connection and on other servers.

Can I fix CURL error 28 if only one server has it?

Usually not from your side. Check the server on the server list; if it is online, tell its staff the exact error and your country and ISP.

FiveM.tools was founded with sponsorship from Nyru.