Can't Connect to Minecraft Server? Fixes by Error Message
Published
Short answer: read the exact words on the error screen. They tell you which layer is broken. "Unknown host" is the name, "Connection refused" is a server that isn't listening, "Connection timed out" is something in the network dropping you, and "Incompatible client!" or a whitelist or login message means you reached the server fine and it turned you away. Find your message in the table, then jump to its fix.
| What you see | What it means | Section below |
|---|---|---|
| Can't resolve hostname / Unknown host | The name you typed doesn't lead to any IP | Unknown host |
| Connection refused: no further information | The machine answered, but nothing is listening on that port | Connection refused |
| Connection timed out: no further information / Can't connect to server | Nothing answered at all | Connection timed out |
| Incompatible client! Please use … / Incompatible version! | Your game version doesn't match the server's | Incompatible client |
| You are not white-listed on this server! | The whitelist is on and you're not on it | Whitelist, bans and full |
| You are banned from this server / The server is full! | Turned away by the server's rules | Whitelist, bans and full |
| Failed to verify username! / Failed to log in: Invalid session | Your login couldn't be checked with Mojang | Failed to verify username |
| A list of mods, or a registry error | Your mods don't match the server's | Mods don't match |
| Timed out (after you were already playing) | The connection dropped mid-game | Timed out while playing |
The message texts above are the ones in Minecraft Java's own English language file (checked against 1.21.1). This guide is for Java Edition. Java and Bedrock can't join each other's servers without a bridge like Geyser, so check that first if a friend is on a console or phone.
First, find where it breaks (3 tests, 2 minutes)
Before changing settings, answer three questions. Together they tell you whether the problem is the player, the network, or the server.
- Can anyone join right now? If other players are online and only one person fails, the server is fine. Skip to "Only one player can't connect" near the end.
- Does the server show online from outside? Put the address your players use into our Minecraft server status checker. It checks from our side, not from your network, so it sees what your friends see. Online there but not for you points at your own network or game. Offline there points at the server, its address, or the route to it.
- If you host at home: can you join from the server PC itself? Type
localhostin Direct Connect. If that fails, the server isn't running properly, and no router setting will help. Read the console orlogs/latest.logfor the error, and wait for theDone (…)! For help, type "help"line before anyone tries to join.
Unknown host or Can't resolve hostname
The game couldn't turn the name into an IP address. In order of how often it happens:
- Typo or extra characters. Copy the address again from wherever the owner shared it. A trailing space or a missing letter is enough to break it.
- A brand new or just changed name. DNS changes take a little while to reach everyone. Try again in a few minutes.
- A stale DNS cache on your PC. On Windows, open Command Prompt and run
ipconfig /flushdns, then restart Minecraft. - Your network's DNS is blocking or failing. Some school, work and filtered home networks don't resolve game server names. Try another network (a phone hotspot is the quick test).
If the server is hosted at home with a dynamic DNS name and it stopped working after a router restart, the name may still point at your old IP. Our guide to a Minecraft server IP that keeps changing covers DDNS updates and how to give players one address that lasts.
Connection refused
Your computer reached a machine at that IP, and that machine said "nothing here on this port". So the IP is right, but one of these isn't:
- The server isn't running, or it's still starting. Check the console for the
Doneline. Modded servers can take several minutes on first start. - Wrong port. If the server doesn't use 25565, players need
address:port, for example203.0.113.10:25570. On a home server, the port isserver-portinserver.properties, and your router rule has to forward that same port. - The port forward points at the wrong PC. If your PC's local IP changed (say from 192.168.1.20 to .23), the router forwards to a machine that isn't running Minecraft. Reserve the local IP in your router. Step 1 of our port forwarding guide shows how.
server-ipis set in server.properties. Leave it blank (server-ip=) unless you know you need it. A wrong value here makes the server listen on an address nobody uses.
Connection timed out or Can't connect to server
Nothing answered. The packets went out and were dropped somewhere. This is the most common error for home servers, and the cause is almost always in the network:
- No port forward, or the wrong protocol. Java needs TCP 25565 (or your custom port) forwarded to the server PC.
- Windows Firewall is blocking Java. When Windows asks, allow Java on both private and public networks. Or add a rule yourself in an admin Command Prompt:
netsh advfirewall firewall add rule name="Minecraft server" dir=in action=allow protocol=TCP localport=25565 - You're behind CGNAT. If your router's WAN IP is different from the IP "what is my IP" shows, or it starts with 100.64 to 100.127, your ISP shares one public IP between many customers. Port forwarding can't work there. Your options are asking the ISP for a public IP, using a tunnel, or renting a server. The CGNAT section of the port forwarding guide shows how to check.
- You gave friends your local IP.
192.168.x.xand10.x.x.xonly work inside your house. Friends outside need your public IP or a hostname. - The server is down or frozen. A server stuck on a crash or out of memory looks the same as a blocked port. Check the console.
One trap that fools owners: you test your own public IP from the same house and it times out, but your friends can join. Many home routers don't support "NAT loopback", so they can't route you out and back in. Inside the house, join with localhost or the local IP. Test the public address with the status checker or from a phone on mobile data instead.
Incompatible client or Incompatible version
"Incompatible version!" in the server list and "Incompatible client! Please use 1.21.1" on join both mean the same thing: your game and the server run different Minecraft versions. The version in the message is the server's version, so that's the one to pick.
- Player side: in the Minecraft Launcher, go to Installations, then New installation, pick that exact version, and play it.
- Owner side: if most players are on a newer version, update the server instead. Check plugin and mod support for the new version first, and back up the world.
- Modded servers: the loader version matters too. Use the exact pack version the server runs.
If the server itself won't start after a version change and shows UnsupportedClassVersionError, that's a Java version problem, not a connection one. See which Java version your Minecraft server needs.
Whitelist, bans and "The server is full!"
These all mean you connected fine and the server's own rules sent you away. Only the owner or an op can fix them, from the console (in-game, the same commands start with /):
- You are not white-listed on this server!
whitelist add PlayerName. Names are matched to the account, so a player who changed their name may need adding again. Ifenforce-whitelist=true, players who aren't listed are kicked as soon as the whitelist reloads. - You are banned from this server:
pardon PlayerName. For an IP ban,pardon-ip 203.0.113.10. - The server is full! Raise
max-playersin server.properties and restart. Make sure the server has the RAM for more players; the RAM calculator gives a starting number.
Failed to verify username and Invalid session
The server asked Mojang's session service to confirm your account and didn't get a yes.
- Invalid session: the game's own advice is right. Close the game and the launcher, open them again, and sign in.
- Failed to verify username!: usually the same login refresh fixes it. If everyone gets it at once, Mojang's services may be having trouble; wait and try again.
- Don't fix this by setting
online-mode=false. That turns off account checks, so anyone can join as any name, including yours with op rights.
Mods don't match
On Forge and NeoForge, a mismatch shows a screen listing the mods that are missing or have different versions. On Fabric you may see a registry error naming the mod IDs your game doesn't have. Either way, the fix is the same: every player runs the exact same modpack and version as the server, ideally by installing the pack from CurseForge or Modrinth instead of adding mods by hand. Server-only mods (like performance or admin mods) don't need to be on the client, and some client-only mods crash a server if you put them there.
If you removed mods and players still can't join, the world can still reference them. Our post on why removed mods still cause "missing" errors goes through the fix order.
Timed out while playing
"Timed out" after you were already in the world means the connection went quiet for too long. If it happens to everyone at once, the server froze, usually from lag or memory. Check the console for "Can't keep up!" lines or a crash. If it's one player, it's usually their Wi-Fi or a VPN. A wired connection is the quickest test.
Only one player can't connect
When everyone else is fine, work through the player's side:
- Same version and the same mods as the server?
- Try a different network. School, work and some public Wi-Fi block game ports.
- Turn a VPN off, or on, for a test. Some servers block VPN addresses.
- Delete the server from the list and add it again with the address typed fresh.
- Restart the game and the launcher to refresh the login.
On Packyard
On Packyard, players join with a name like yourserver.play.packyard.ca. Java players type the name only, with no port. The address stays the same when the server restarts or moves to other hardware, and nobody needs to forward a port at home. A few things specific to us:
- Use the address shown in your panel. If you renamed the server, the old name keeps working for 7 days, then it's released, so share the new one.
- You pick the Minecraft version when you order (Paper, Fabric, Forge and NeoForge). Players need that same version.
- Packyard is Java Edition only. Bedrock players can't join without a bridge.
- The panel console shows when the server is ready, and the status checker above works on our addresses too.
Plans are $1.50 per GB of RAM a month, from $5 for 3 GB (USD plus applicable taxes), available in the US and Canada (not Quebec).
Get a Minecraft server with an address that never changes, from $5
Packyard is not an official Minecraft product and is not affiliated with Mojang or Microsoft.
FAQ
Why can't I connect to my friend's Minecraft server?
Read the exact error. "Incompatible client!" means a different game version, "You are not white-listed" means the owner must add you, and "Connection timed out" usually means the server isn't reachable from outside, which the owner has to fix with a port forward or a host.
What does "Connection refused: no further information" mean?
The IP is reachable, but nothing is listening on that port. The server is off, still starting, on a different port, or the router forwards the port to the wrong PC.
Why can my friends join my server but I can't?
If you host at home and join through your public IP, your router may not support NAT loopback. Join with localhost (on the server PC) or the local IP instead.
Why does my server show "Can't connect to server" in the list?
The server list couldn't reach it: the server is offline or frozen, the address or port is wrong, or a firewall or CGNAT blocks it. Check it from outside with a status checker to see which.
Does flushing DNS fix Minecraft connection problems?
Only for name errors like "Unknown host" or a server whose IP just changed. Run ipconfig /flushdns on Windows and restart the game. It won't fix version, whitelist or port problems.
Is it safe to turn off online-mode to fix login errors?
No. With online-mode=false the server doesn't check accounts, so anyone can join under any name, including an op's. Restart the game and launcher instead.
More guides and posts on the Packyard blog.