Setting FiveM server endpoints
Set the endpoints in server.cfg to the port from the panel so your FiveM server shows up in the list and accepts connections.
Endpoints tell a FiveM server which port to accept player connections on. On a new server they're set automatically. You set them yourself when you upload your own pack or install a ready-made pack through txAdmin.
Checking the port
The client panel is available in Polish only, so its labels are given in Polish with a translation. You'll find the server's port in the client panel, in the Sieć (Network) tab. Use the port marked Domyślny port (Default port). The port marked txAdmin belongs to the txAdmin panel, so don't put it in the endpoints.
Which server.cfg to edit
On a new server, server.cfg is in the server's main folder. But if you set up the server in txAdmin from a ready-made pack (Popular Recipes, such as QBCore or ESX), txAdmin creates a new server.cfg and resources folder deep inside the txData folder, for example:
txData/QBCoreFramework_A1B2C3.base/server.cfgThe folder name depends on the pack. The server then uses only the file in txData, and the server.cfg in the main folder is ignored. Set the endpoints in the file that sits next to the resources folder in txData.
Setting the endpoints
Open server.cfg
In the Pliki (Files) tab, open the right
server.cfgfile: the one in the main folder or the one intxData, as described above.Add the endpoints at the top of the file
Enter two lines at the very top of the file, replacing
<port>with the port from the panel:server.cfg endpoint_add_tcp "0.0.0.0:<port>" endpoint_add_udp "0.0.0.0:<port>"If the file already has
endpoint_add_tcpandendpoint_add_udplines with a different port, change them instead of adding new ones.Save and restart the server
The endpoints load when the server starts.
Checking the server
After it starts, the server should appear in the FiveM server list, and players can connect using the IP address and port from the panel.
Common problems
“Connection failed”, “Failed to fetch server variables… CURL error code 7”
The player can't connect because the server listens on a different port than the one in the
panel. Check the port in the endpoints and that the lines are at the very top of server.cfg.
In the console: “Server list query returned an error… Connection refused”
The server can't register with the server list. Check the endpoints, then add a line to
server.cfg with the server's IP address from the Sieć tab:
set sv_listingIPOverride "203.0.113.10"Changes to server.cfg have no effect
You're probably editing a file that isn't used. If the server runs a txAdmin pack, the right
server.cfg is in the txData folder, next to the resources folder. See Which server.cfg to
edit.