FiveM Connection Errors: Timed Out, License Key and Port Fixes
When players cannot join your FiveM server, check these causes in order. Most connection problems come down to the license key, the endpoint lines or the port.
1. License key
Your server needs a valid sv_licenseKey in server.cfg. Keys are created for your account on Cfx.re Keymaster and must be a real, active key. If the console reports a license key problem, regenerate the key, paste it with no extra spaces or quotes problems, and restart. Never post the key publicly.
2. Endpoints and ports
The default game port is 30120. In server.cfg the endpoint lines normally look like this:
- endpoint_add_tcp "0.0.0.0:30120"
- endpoint_add_udp "0.0.0.0:30120"
Both TCP and UDP are used on that port. On a hosted server the port is assigned to you, so use the one shown in your panel rather than guessing. If you change it, change it in the panel allocation too so the two match.
3. txAdmin port
txAdmin uses its own web port, 40120 by default. This is separate from the game port. Players do not need it, so do not confuse a working txAdmin page with a reachable game server.
4. Timed out errors
- Confirm the server is actually running and finished starting in the Console tab.
- Check that the player is connecting to the correct IP and port, or the correct cfx.re join link.
- If resources are still downloading, large asset packs can cause long loads. Wait or reduce asset size.
- Ask the player to clear the FiveM cache and retry.
5. Other player side fixes
- Update or reinstall the FiveM client.
- Disable VPNs and try another network.
- Check that antivirus is not blocking FiveM.
Check the console
Read the console when a player connects. Messages about a rejected connection, a failed ticket or a missing key tell you much more than the player error alone. If your server uses a whitelist or a queue resource, confirm that it is not blocking the player. Share the exact error text with us in Discord if the problem remains.