Goal
Resolve common errors when clients cannot connect to your server.
Symptoms
Connecting failed. Failed to connect to server
Connection refused by server
- Server console shows
Could not start resource
or 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_licenseKey
is 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 server
screen without errors - No
connection refused
messages in console
See also
Next steps
If issues persist, capture full server logs and ask in GitHub Discussions.