Tree Host

How to Fix "Can't Connect to Server" in Minecraft

Updated · by the Tree Host team

To fix "Can't connect to server" in Minecraft, check four things in order: the server is running, the address and port are typed exactly right, your game version matches the server, and nothing blocks the connection (firewall, port forwarding or a VPN). The exact error message tells you which one it is, and the table below maps each message to its fix.

1. Read the exact error first

"Can't connect to server" is the title of the screen, not the cause. The line under it is the clue. Look at it before you change anything.

What you seeUsually meansGo to
Connection timed out or getsockoptThe server is off, asleep, or a firewall or port is blocking youSteps 2 and 5
Connection refusedNothing is listening on that address and portSteps 2 and 3
Unknown host or Can't resolve hostnameThe address is misspelled or the domain has no DNS recordStep 3
Outdated client or Outdated serverYour game version and the server version differStep 4
Failed to verify usernameYour login session expiredStep 6
You are not whitelisted on this serverThe whitelist is on and you are not on itStep 6
Incompatible mod set or a mod channel errorYour mods do not match the server's modsStep 6
Unable to connect to world (Bedrock)Wrong port, wrong edition or no crossplay set upStep 7

2. Check that the server is actually running

Most "can't connect" reports come down to a server that is not on. Open your server's console or panel and look for a line like Done (12.3s)! For help, type "help". If you do not see it, the server is still starting or has stopped.

3. Check the address and port

A single wrong character is enough to fail. Copy the address instead of typing it by hand.

4. Match the game version to the server version

Java Edition servers only accept clients on a compatible version. If the server runs 1.21.4 and you launch 1.20.1, you get Outdated client. If you are newer than the server, you get Outdated server.

5. Fix the network if you host at home

A server on your own computer is reachable from your own house but not from the internet until you open it up. This is the usual cause when you can join with localhost and nobody else can.

If you are tired of fighting a router, a hosted server skips all of this, because the address works from anywhere. See the features page for what Tree Host includes.

6. Fix account, whitelist and mod problems

7. Bedrock players and crossplay

If a friend on a phone, tablet or console cannot join a Java server, that is expected. Bedrock and Java are different games and speak different protocols. A Java Paper server can accept Bedrock players if you add Geyser and Floodgate, and then Bedrock players use UDP port 19132 (or the port you set) along with the server's address. Without that setup, Bedrock shows Unable to connect to world.

8. Quick test to find which side is broken

For problems that only show up under load, see our guide on how to fix Minecraft server lag, because a server that is too slow to answer can also time out joiners.

How Tree Host helps

On Tree Host the server address and port are shown at the top of the server page, so you can copy them instead of typing. There is no router to configure. The troubleshooting guide lists the same join errors with fixes, and you can read the live console to see why a join failed. Creating your own servers opens at launch. Anyone signed in can try the shared demo server now, and pre-launch payments are covered by a full refund if Tree Host does not launch. See the plans when you are ready.

Tree Host gives you a ready address, a live console and sleep-when-empty hosting, so there is no router to set up.

More guides

← More guides