Most connection problems come down to five things: the server isn't fully started, the address is wrong, the versions don't match, a whitelist is on, or there's a mod mismatch. Work through this list in order.

  1. Is the server fully started? Open the console and look for Done (...)! For help, type "help". If it's still loading or has crashed, see the guide "My server keeps crashing or won't start."
  2. Is the address right? Copy it again from the panel, port included (see "How do I find my server's IP address and port?"). One wrong digit in the port gives "Connection refused".
  3. Do the versions match? "Outdated client" or "Outdated server" means your game version is different from the server's. Change your launcher version, or install ViaVersion on a Paper server to let newer clients join.
  4. Is a whitelist on? "You are not white-listed on this server" means you need to add the player (see "How do I turn the whitelist on and add players?").
  5. Are you banned? Check banned-players.json and banned-ips.json, or run banlist in the console.
  6. Mods or modpack? "Mod rejections" or "Incompatible mod set" means your client and the server don't have the same mods and versions.
  7. Using a custom domain? Try the raw IP:port. If that works, the problem is your DNS records (see "Can I connect my own domain to my server?"). DNS changes can take up to a few hours to spread.
  8. Only one person can't connect? Ask them to restart their game and router, try another network (like a phone hotspot), and turn off any VPN.
Error messageMost likely cause
Connection refusedServer is offline, or the port is wrong
Connection timed outWrong IP, a DNS problem, or the player's network
Outdated client / serverVersion mismatch
Failed to verify usernameonline-mode problem or Mojang login trouble; restart the game launcher
Not white-listedWhitelist is on

Still stuck? Open a ticket with the exact error message and your server's latest log (see "What should I put in a support ticket?").