1. Home
  2. Hosting guides
  3. Can't connect to a Minecraft server

Can't connect to a Minecraft server? What each error means

If you can't connect to a Minecraft server, the line under Failed to connect to the server tells you why: Connection refused means nothing answers on that port, Connection timed out means nothing answers at all, and Unknown host means the address leads nowhere. Here are the 11 messages players see most, what each one means and how to fix it, on a server at home and on a hosted one.

Prices checked on 10 October 2026 on the hosts' own order pages. All prices include VAT.

A Minecraft server with a RAM stick, a grass block and a map

The short answer

Read the line under Failed to connect to the server: Connection refused means the server is off or the port is wrong, and Connection timed out means the address, the router or a firewall is wrong. Incompatible client means the versions differ, and You are not white-listed means the whitelist, which is on by default on new servers since Java 26.3. On a hosted server, check that the server is running and that the address includes the port.

Compare Minecraft crossplay server hosting

Compare Minecraft crossplay server hosting if Bedrock friends need to connect as well: a hosted crossplay server gives Java and Bedrock players an address to join, with no router or port forwarding on your side. Each row is the best crossplay plan at that host for 6 to 10 players on vanilla Minecraft in Poland (Warsaw), with the finder's pick first.

The best Minecraft server plan at each host for 6 to 10 players on Java and Bedrock in Poland (Warsaw)
ProviderMemoryCPU & storageMonthly priceOrder page
Lodehost Starter Crossplay, performance line8 GB Free websiteRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 60 GB Enterprise NVMe€7.18 /mo First 3 months, then €17.95/mo, €15.95 on 24 months 60% off for new customersView plan Lodehost Starter Crossplay (opens Lodehost)
Astroworld Hosting Starter Crossplay Performance8 GB Free websiteRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 50 GB Enterprise NVMe€7.18 /mo First 3 months, then €17.95/mo, €15.95 on 24 months 60% off for new customersView plan Astroworld Starter Crossplay Performance (opens Astroworld Hosting)
Cheapest Minecraft Hosting Plus, budget line8 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 2 shared vCPU, 40 GB NVMe€6.40 /mo Same price on every termView plan CheapestMinecraftHosting Plus (opens Cheapest Minecraft Hosting)

On the Performance lines the large price is what a new customer pays a month at the start: for the first 3 months at both Astroworld Hosting and Lodehost, when you pay monthly. The regular monthly price comes after it, and the last price in each row is the monthly price on the host's longest term.

Compare the same billing term and location before you order.

Every price is taken from the host's own order page. How we compare

Where does the connection fail?

A connection to a Minecraft server can fail in 3 places, and the error tells you which one:

  • The address

    Unknown host and Can't resolve hostname: the name or IP is wrong, or the domain does not point to the server yet.

  • The network

    Connection refused and Connection timed out: the server is off, the port is wrong, or a router or firewall stops the connection.

  • The server's rules

    Incompatible client, not white-listed, banned or full: the server answers, but it does not let you in.

If the server list shows a ping and the player count, the address and the network are fine, and the problem is the version, the whitelist or your account.

Minecraft connection errors and what they mean

These are the 11 Minecraft connection errors players see most, what each one means and what to fix first:

Minecraft connection error messages, what they mean and what to fix first
MessageWhat it meansFix first
Connection refused: getsockoptThe computer at that address answered, but no Minecraft server listens on that portStart the server and check the port
Connection timed out: getsockoptNothing answered at allCheck the IP, the port forwarding and the firewall
Unknown host, Can't resolve hostnameThe name in the address does not lead to an IP addressCheck the spelling and the domain's DNS records
Incompatible client!, Outdated client!, Outdated server!Your game and the server run different versionsPick the version the message names in the launcher
You are not white-listed on this server!The whitelist is on and your name is not on it; Paper says whitelistedAsk an operator to add you
Failed to verify username!The server could not confirm your Minecraft accountClose the game and the launcher, then log in again
The server is full!The max-players limit is reachedWait for a free slot, or raise max-players
You are banned from this serverAn operator banned your name or your IP addressContact the server's staff
Internal Exception: io.netty.handler.codec.DecoderExceptionYour game and the server disagree about the data they send, usually because of different modsUse exactly the same mods and modpack version
This server requires a custom resource packYou declined the server's resource packSet Server Resource Packs to Enabled in the server's entry
Server requires accepting the Code of ConductThe server shows rules you have to accept firstJoin again and accept the code of conduct

The getsockopt at the end of the first two can also read no further information, depending on your system. It names the place in Java where the failure was noticed, not the cause, so read the words before it.

How to fix Connection refused: getsockopt in Minecraft

To fix Connection refused: getsockopt in Minecraft, make sure the server is running and that you use the right port, because the error means the computer at that address answered but nothing listens on that port. Check these in order:

  • The server is not running. It crashed, it is still starting, or someone closed the server window. Look at the console or the panel before anything else.
  • The port is wrong. A Java server listens on 25565 unless server-port says otherwise. Many hosted servers share an IP address and give each server its own port, so the address needs that port after a colon, such as 203.0.113.10:25570.
  • You connect from the server's own computer to its external IP. Use localhost there instead.

How to fix Connection timed out: getsockopt

To fix Connection timed out: getsockopt, check the IP address first and then the router and the firewall, because the error means nothing answered at all before the game stopped waiting. On a server at home, these are the usual causes:

  • A friend used your internal address, one that starts with 192.168 or 10. It only works inside your own network.
  • Your external IP changed. Most home connections get a new one now and then, so last week's address can be dead.
  • The router has no port forwarding rule for TCP port 25565, or it points at the wrong computer. Our guide on how to make a Minecraft server shows how to set one up.
  • The firewall on the server PC blocks Java, so the router forwards players to a closed door.
  • Your provider shares one public IP between many homes, and port forwarding cannot work at all.

On a hosted server the network side is already done, so a timeout usually means a typo in the address or a network on the player's side that blocks game ports, which happens on some school and office networks.

How to fix Unknown host and Can't resolve hostname

To fix Unknown host and Can't resolve hostname in Minecraft, check the spelling of the address first: both mean that the name you typed does not lead to any IP address. Leave out http:// and any spaces, because the address is only the name, or the name, a colon and the port.

If the spelling is right, the domain itself is the problem. It needs an A record that points to the server's IP, or an SRV record for a server on another port, and a record you just added can take a while to reach every network. Our guide to a Minecraft server domain explains both records. Until then, players can join with the IP address and the port.

How to fix Outdated client and Incompatible client errors

To fix an Outdated client or Incompatible client error, play the exact Minecraft version the server runs, which the message names, for example Incompatible client! Please use 26.3. A vanilla server shows that one message whether your game is older or newer. Paper and Spigot say Outdated client! Please use 26.3 when your game is older, and Outdated server! I'm still on 1.21.11 when it is newer than the server. In the Java launcher, open Installations, add a new installation with the server's version and start the game with it.

A server owner can let several versions in at once with ViaVersion, which lets newer clients join an older server, and ViaBackwards for the other way around. Both run on Paper, Fabric and Velocity, with builds up to 26.3. On a crossplay server, keep Geyser up to date as well, because Bedrock players update their game automatically.

You are not white-listed on this server

You are not white-listed on this server! means the whitelist is on and your name is not on it, and since Java 26.3 every new server starts with the whitelist switched on. An operator fixes it with whitelist add and your exact name in the console. Our Minecraft server whitelist guide has every command, the Bedrock allowlist and the Floodgate names of Bedrock players on a crossplay server.

How to fix Failed to verify username

To fix Failed to verify username!, close Minecraft and the launcher completely and log in again, because the error means the server could not confirm your account with Mojang's session servers. If that does not help, one of these is the cause:

  • The authentication servers are down. The game then says so in its own message, and waiting is the only fix.
  • Multiplayer is switched off for your account, which the game reports as Multiplayer is disabled. Please check your Microsoft account settings. The switch is in the privacy or family settings of the Microsoft account, for example on a child account.
  • A launcher without a real account. A server with online-mode=true lets in checked accounts only, so a cracked launcher never gets past this point.
  • A proxy that is set up wrong, on the server owner's side. Behind Velocity, the servers need online-mode=false and the same forwarding secret as the proxy, or players cannot log in.

Can't connect to a Minecraft server on the same network

If you can't connect to a Minecraft server on the same network, use its internal address instead of the external one: localhost on the computer that runs the server, and an address such as 192.168.1.20 on any other device at home. Many home routers cannot send a connection out to their own external IP and back in again, so the external address fails from inside your home while it works for friends elsewhere.

Find the internal address with ipconfig on Windows, where it is listed as IPv4 Address, or in your router's list of connected devices. For a world opened to LAN from singleplayer, the game prints the port it chose in the chat.

Can't connect to a Minecraft server but others can

When you can't connect to a Minecraft server but others can, the server is fine and the cause is on your side: your version, your account, your network or your place on the server's lists. Check these:

  • Your version differs from what the others play. The server list shows Incompatible version! in that case.
  • Your account is not on the whitelist, or is banned, or its session expired.
  • Your network blocks the port, which happens at schools and offices, or a VPN gets in the way. A server with prevent-proxy-connections=true kicks players whose network does not match the one Mojang saw at login.
  • Your mods differ from the server's, on a modded server.

Bedrock players can't connect to a crossplay server

Bedrock players connect to a crossplay server on its Bedrock port, 19132 by default, over UDP, not on the Java port. In the Bedrock app they add the server under Servers with the same address and that port. A server at home needs a UDP forwarding rule for it, next to the TCP rule for Java. Xbox, PlayStation and Switch players cannot type in a custom server at all, and our guide to a Minecraft console server shows the way around that.

Internal Exception: io.netty DecoderException

Internal Exception: io.netty.handler.codec.DecoderException on a Minecraft server usually means that your game and the server do not run the same mods or the same modpack version, so they disagree about the data they send. Install the exact modpack version the server runs, or compare the mods folders one by one. If everyone gets it after an update, look in the server's log for the mod that failed.

Before you ask for help with a connection error

Before you ask for help with a connection error, collect 3 things, because they answer most of the questions you will get:

  1. The exact message

    Copy the whole error, including the line under Failed to connect to the server, or take a screenshot of it.

  2. The address you typed

    Write down the address and the port exactly as you entered them in the server list.

  3. Your version and edition

    Note the Minecraft version in the launcher, and whether you play on Java or on Bedrock.

Questions about Minecraft connection errors

What does Can't connect to server mean in the server list?

The game asked the server for its status and got no answer: the server is off, the address or the port is wrong, or a router or firewall blocks the connection. Can't resolve hostname, by contrast, means the name in the address is wrong.

Do I need to add the port to the server address?

Only when the server does not use the default port, 25565 on Java or 19132 on Bedrock. Add it after a colon on Java, for example play.example.com:25570, unless the domain has an SRV record that points to that port.

What does getsockopt mean in a Minecraft error?

getsockopt is the name of the system function where Java noticed that the connection failed. It is not the cause. The words in front of it, Connection refused or Connection timed out, tell you what went wrong.

Can a VPN stop me from joining a Minecraft server?

Yes. Some servers block VPN addresses, and a server with prevent-proxy-connections=true kicks players whose network differs from the one Mojang's login servers saw. Turn the VPN off and try again.

Why does the server look offline when I can still join it?

The server owner has set enable-status=false in server.properties. The server then does not answer status requests and looks offline in the list, but it still accepts players.

Why do I get disconnected with Timed out after joining?

Timed out after you joined means the connection stopped mid-game: your connection dropped for a moment, or the server froze for a long time. If everyone gets it at once, the server is the cause, and our guide on Minecraft server lag shows how to find out why.

Still unsure? Use the Minecraft server finder