Connection timed out in Minecraft: how to fix it
“Connection timed out”, “Connection refused”, “Can't resolve hostname” — why you can't join a server and how to check the address, port, firewall and router.
Updated:

Connection errors mean the game couldn't even talk to the server. It's not a mod and not the version — it's the network. The error text tells you where exactly it broke.
What the messages mean
- Connection timed out — the server didn't answer. It's off, the address is wrong, or something is blocking the connection.
- Connection refused — there's a computer at the address, but nobody's listening on that port: the server isn't running or the port is different.
- Can't resolve hostname / Unknown host — the game couldn't find the address. A typo in the name or a DNS problem.
- Connection reset — the connection dropped midway: unstable internet or server protection.
If you're joining someone else's server
- Check the address — no spaces, with the correct port after a colon if it isn't 25565.
- Is the server up? Ask the admin or friends — it may be under maintenance.
- Firewall and antivirus may block Java. Allow Java network access.
- VPNs and corporate networks sometimes block game ports. Try without the VPN.
- DNS: if the name isn't found but the IP works, switch to a public DNS in your network settings.
If a friend can't join your server
- Local network: the friend is at home with you — give them the local address shown in the “Server” tab (like
192.168.x.x). - Over the internet: forward the server port (25565 by default) on the router to your computer and give your friend the external address. See how to open a port.
- Windows Firewall must allow incoming connections for Java.
- CGNAT: some providers don't give you a public address, and port forwarding won't help. Rooms will save the day.
The simplest way — rooms
The “Rooms” tab in TCLauncher opens your world to friends over the internet without a router, ports or a public IP. Modded guests get the same instance automatically. More — playing with friends.
Download TCLauncher — rooms work where port forwarding is impossible.
FAQ
What does “Connection timed out” mean in Minecraft?
The server didn't answer: it's off, the address is wrong, or a firewall, VPN or router is blocking the connection.
Why can't my friend join my server?
Most often the port isn't forwarded on the router, the firewall blocks Java, or the provider uses CGNAT. TCLauncher rooms get around all of this.
What's the difference between “refused” and “timed out”?
Refused — the computer answered, but no server is running on that port. Timed out — there was no answer at all.