PACKYARDStart your server

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 seeWhat it meansSection below
Can't resolve hostname / Unknown hostThe name you typed doesn't lead to any IPUnknown host
Connection refused: no further informationThe machine answered, but nothing is listening on that portConnection refused
Connection timed out: no further information / Can't connect to serverNothing answered at allConnection timed out
Incompatible client! Please use … / Incompatible version!Your game version doesn't match the server'sIncompatible client
You are not white-listed on this server!The whitelist is on and you're not on itWhitelist, bans and full
You are banned from this server / The server is full!Turned away by the server's rulesWhitelist, bans and full
Failed to verify username! / Failed to log in: Invalid sessionYour login couldn't be checked with MojangFailed to verify username
A list of mods, or a registry errorYour mods don't match the server'sMods don't match
Timed out (after you were already playing)The connection dropped mid-gameTimed 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.

  1. 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.
  2. 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.
  3. If you host at home: can you join from the server PC itself? Type localhost in Direct Connect. If that fails, the server isn't running properly, and no router setting will help. Read the console or logs/latest.log for the error, and wait for the Done (…)! 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:

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:

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:

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.

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 /):

Failed to verify username and Invalid session

The server asked Mojang's session service to confirm your account and didn't get a yes.

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:

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:

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.