Failed to connect to the server, Connection timed out

Mojang Minecraft

Severity: Minor

What it means

Failed to connect to the server is the heading of the screen, and the line below gives the reason.
Connection timed out means that your game called the server and got no answer.
The server may be off, the address may be wrong, or something on the way blocks the connection.

Affected Models

  • Minecraft: Java Edition

How to Fix It

  1. Check the server's address and port, and ask someone else if the server is online.

  2. Restart Minecraft, then the device.

  3. Sign out of your Microsoft account, close the game and sign in again.

  4. Try another network.
    A school or work network may restrict games.

  5. Check that the firewall, the antivirus or the VPN doesn't block Minecraft.

  6. Restart the router.
    If you changed the DNS by hand, set it back to automatic.

  7. Set the router to moderate or open NAT.

Frequently Asked Questions

It's my own server. What then?

Check that it's running, and that the router forwards its port, which is 25565 unless you changed it.