[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"doc-en-fix-fivem-server-variables-curl-28":3},{"path":4,"slug":5,"title":6,"description":7,"category":8,"subcategory":9,"icon":10,"date":11,"author":12,"order":13,"image":14,"tags":15,"keywords":20,"docGroup":28,"docGroupIcon":28,"link_fr":29,"bodyHtml":30},"\u002Fdocs\u002Fen\u002Fgaming\u002Ffivem\u002Ffix-fivem-server-variables-curl-28","fix-fivem-server-variables-curl-28","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.","jeux","fivem","tabler:file-text","2026-11-01","Winheberg",97,"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fgaming\u002Ffivem\u002Ffix-fivem-server-variables-curl-28.webp",[9,16,17,18,19],"txadmin","server.cfg","connection","troubleshooting",[21,22,23,24,25,26,27],"failed to fetch server variables","curl error 28","fivem cannot connect","timeout was reached","endpoint_add_tcp","fivem server port","txadmin server.cfg","","\u002Fdocs\u002Ffivem\u002Ferreur-server-variables-curl-28-fivem","\u003Ch2>Context\u003C\u002Fh2>\n\u003Cp>Your players cannot join your \u003Cstrong>FiveM\u003C\u002Fstrong> server, and the game shows them a message like this one when they try to connect.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">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)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cp>At Winheberg, the most common cause is a \u003Cstrong>port that does not match\u003C\u002Fstrong> 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.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-tip\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 16v-4\"\u002F>\u003Cpath d=\"M12 8h.01\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Look closely at the port number in the error message. If it reads \u003Ccode>30120\u003C\u002Fcode> while your Winheberg server uses a different port, go straight to step 3.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>Prerequisites\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>An active \u003Cstrong>FiveM server\u003C\u002Fstrong> on your Winheberg gaming panel\u003C\u002Fli>\n\u003Cli>Access to the \u003Cstrong>Console\u003C\u002Fstrong> and the file manager (\u003Cstrong>Files\u003C\u002Fstrong>) of your panel\u003C\u002Fli>\n\u003Cli>Access to the \u003Cstrong>txAdmin\u003C\u002Fstrong> web interface if you use it\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>1. Make sure the server is running\u003C\u002Fh2>\n\u003Cp>This error also shows up, quite simply, when the server is stopped, restarting or has crashed. Open the \u003Cstrong>Console\u003C\u002Fstrong> of your gaming panel and check that the server is running and has finished starting.\u003C\u002Fp>\n\u003Cp>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.\u003C\u002Fp>\n\u003Ch2>2. Note your server&#39;s address and port\u003C\u002Fh2>\n\u003Cp>Every Winheberg server has its own assigned address and port, shown in your gaming panel in this form.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">gm1-whXX.wh-game.fr:30XXX\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>To test the connection yourself without going through the server list, open the game console with the \u003Cstrong>F8\u003C\u002Fstrong> key and type \u003Ccode>connect gm1-whXX.wh-game.fr:30XXX\u003C\u002Fcode>, replacing it with your own address and port.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>3. Fix the port in the server.cfg used by txAdmin\u003C\u002Fh2>\n\u003Cp>This is the cause our support team meets most often. In the \u003Ccode>server.cfg\u003C\u002Fcode> at the root of your server, the panel automatically fills in the right port on these two lines.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">endpoint_add_tcp &quot;0.0.0.0:30XXX&quot;\nendpoint_add_udp &quot;0.0.0.0:30XXX&quot;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>However, if you installed your server with a txAdmin \u003Cstrong>Popular Recipe\u003C\u002Fstrong> (ESX Legacy, QBCore, Qbox, FiveM Basic Server), txAdmin created another folder in \u003Ccode>\u002Fhome\u002Fcontainer\u002FtxData\u002F\u003C\u002Fcode> with its own \u003Ccode>server.cfg\u003C\u002Fcode>. That file is the one used at startup, and it often keeps the FiveM default port, \u003Ccode>30120\u003C\u002Fcode>, which is not your server&#39;s port.\u003C\u002Fp>\n\u003Cp>To fix it, log in to txAdmin and open \u003Cstrong>CFG Editor\u003C\u002Fstrong>. Find the two lines \u003Ccode>endpoint_add_tcp\u003C\u002Fcode> and \u003Ccode>endpoint_add_udp\u003C\u002Fcode>, then replace the port with the one you noted in step 2. Save, then restart the server from txAdmin.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-important\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Cpath d=\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z\"\u002F>\u003Cpath d=\"M12 8v4\"\u002F>\u003Cpath d=\"M12 16h.01\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Both lines must use \u003Cstrong>the same port\u003C\u002Fstrong>, the one assigned by Winheberg. Do not change \u003Ccode>0.0.0.0\u003C\u002Fcode>, and do not put \u003Ccode>30120\u003C\u002Fcode> back unless it is exactly the port assigned to your server.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>If you set up txAdmin with \u003Cstrong>Existing Server Data\u003C\u002Fstrong> pointing to \u003Ccode>\u002Fhome\u002Fcontainer\u002F\u003C\u002Fcode>, txAdmin uses the \u003Ccode>server.cfg\u003C\u002Fcode> preconfigured by the panel. Just check that the two \u003Ccode>endpoint_add\u003C\u002Fcode> lines have not been changed.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>4. Rule out the player&#39;s computer\u003C\u002Fh2>\n\u003Cp>If only one player gets the error while the others connect normally, the cause is on their side. Their computer&#39;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.\u003C\u002Fp>\n\u003Ch2>If you run into trouble\u003C\u002Fh2>\n\u003Ch3>❌ The error persists although the port is correct\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Make sure you edited the \u003Ccode>server.cfg\u003C\u002Fcode> that is actually used, the one opened in \u003Cstrong>CFG Editor\u003C\u002Fstrong> if you go through txAdmin\u003C\u002Fli>\n\u003Cli>Check that no other \u003Ccode>endpoint_add_tcp\u003C\u002Fcode> or \u003Ccode>endpoint_add_udp\u003C\u002Fcode> line further down the file sets a different port\u003C\u002Fli>\n\u003Cli>Fully restart the server after the change, reloading resources is not enough\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ The server drops on its own and nobody can connect anymore\u003C\u002Fh3>\n\u003Cp>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.\u003C\u002Fp>\n\u003Ch2>Need help?\u003C\u002Fh2>\n\u003Cp>If your players still cannot connect after these checks, our team is here for you. Open a ticket in the \u003Cstrong>Technical\u003C\u002Fstrong> department from your client area, fill in the \u003Cstrong>Related Product\u003C\u002Fstrong> field with the server concerned, and attach the full error message along with the \u003Ccode>endpoint_add\u003C\u002Fcode> lines from your \u003Ccode>server.cfg\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Your FiveM server answers again, and your players can join it 🎮\u003C\u002Fp>\n",1794526352291]