Goal
Resolve common errors when clients cannot connect to your server.
Symptoms
Connecting failed. Failed to connect to serverConnection refused by server- Server console shows
Could not start resourceor license key warnings
Steps
- Verify server is listening
Ensure both TCP and UDP are open.
sudo ss -tulpn | grep 30120 - Check license key
- Confirm
sv_licenseKeyis set inserver.cfg - Generate keys at keymaster.fivem.net
- Confirm
- Inspect firewall
sudo ufw allow 30120/tcp sudo ufw allow 30120/udp - Review server logs Look for missing resources or database errors in the console.
Verification
- Clients reach the
Connecting to serverscreen without errors - No
connection refusedmessages in console
See also
Next steps
If issues persist, capture full server logs and ask in GitHub Discussions.