FiveM

How to fix the Failed to fetch server variables error (CURL error 28) on FiveM

Players see Failed to fetch server variables and CURL error code 28 when joining your FiveM server? Check startup, the assigned port and the txAdmin server.cfg.

November 1, 2026 Winheberg
Documentation›FiveM›How to fix the Failed to fetch server variables error (CURL error 28) on FiveM

Context

Your players cannot join your FiveM server, and the game shows them a message like this one when they try to connect.

Failed to fetch server variables. Failed to connect to 203.0.113.42 port 30120 after 21030 ms: Timed out - CURL error code 28 (Timeout was reached)

This message means the game tried to reach your server on the address and port shown, then gave up after about twenty seconds without an answer. The problem therefore lies in the connection itself, before any resource is even loaded.

At Winheberg, the most common cause is a port that does not match the one assigned to your server, usually after an installation through txAdmin. This guide helps you find the cause and fix it, starting with the quickest checks.

Look closely at the port number in the error message. If it reads 30120 while your Winheberg server uses a different port, go straight to step 3.

Prerequisites

  • An active FiveM server on your Winheberg gaming panel
  • Access to the Console and the file manager (Files) of your panel
  • Access to the txAdmin web interface if you use it

1. Make sure the server is running

This error also shows up, quite simply, when the server is stopped, restarting or has crashed. Open the Console of your gaming panel and check that the server is running and has finished starting.

If the server stops on its own shortly after launch, the connection error is only a side effect. Read the last lines of the console to find what causes the shutdown, a rejected License Key for example, and deal with that first.

2. Note your server's address and port

Every Winheberg server has its own assigned address and port, shown in your gaming panel in this form.

gm1-whXX.wh-game.fr:30XXX

Write down the port, it is the reference value for the rest of this guide. Your server must listen on exactly this port, and your players must connect using this full address.

To test the connection yourself without going through the server list, open the game console with the F8 key and type connect gm1-whXX.wh-game.fr:30XXX, replacing it with your own address and port.

3. Fix the port in the server.cfg used by txAdmin

This is the cause our support team meets most often. In the server.cfg at the root of your server, the panel automatically fills in the right port on these two lines.

endpoint_add_tcp "0.0.0.0:30XXX"
endpoint_add_udp "0.0.0.0:30XXX"

However, if you installed your server with a txAdmin Popular Recipe (ESX Legacy, QBCore, Qbox, FiveM Basic Server), txAdmin created another folder in /home/container/txData/ with its own server.cfg. That file is the one used at startup, and it often keeps the FiveM default port, 30120, which is not your server's port.

To fix it, log in to txAdmin and open CFG Editor. Find the two lines endpoint_add_tcp and endpoint_add_udp, then replace the port with the one you noted in step 2. Save, then restart the server from txAdmin.

Both lines must use the same port, the one assigned by Winheberg. Do not change 0.0.0.0, and do not put 30120 back unless it is exactly the port assigned to your server.

If you set up txAdmin with Existing Server Data pointing to /home/container/, txAdmin uses the server.cfg preconfigured by the panel. Just check that the two endpoint_add lines have not been changed.

4. Rule out the player's computer

If only one player gets the error while the others connect normally, the cause is on their side. Their computer's firewall, an antivirus or a VPN can block the connection to your server. The same applies if they get this error on several different FiveM servers, not just yours.

If you run into trouble

❌ The error persists although the port is correct

  • Make sure you edited the server.cfg that is actually used, the one opened in CFG Editor if you go through txAdmin
  • Check that no other endpoint_add_tcp or endpoint_add_udp line further down the file sets a different port
  • Fully restart the server after the change, reloading resources is not enough

❌ The server drops on its own and nobody can connect anymore

If the server was running normally and then becomes unreachable for every player at once, with no error in the console, it may be a network attack. In that case, open a ticket right away, our team can check the traffic reaching your server and adjust the protection.

Need help?

If your players still cannot connect after these checks, our team is here for you. Open a ticket in the Technical department from your client area, fill in the Related Product field with the server concerned, and attach the full error message along with the endpoint_add lines from your server.cfg.

Your FiveM server answers again, and your players can join it 🎮

Need a FiveM server?

Discover our offers tailored to your needs and get started now.

View offers