MinecraftServers100

How to fix "Connection refused" and "Connection timed out" in Minecraft

Updated 2026-11-26

Minecraft shows Connection refused or Connection timed out when it can't open a connection to a server. They look alike but usually have different causes. Check the server before you reinstall anything.

What the two errors mean

Connection refused: the machine answered, but nothing accepted the connection on that port. The server may be stopped, running on another port, or behind a firewall that rejects connections.

Connection timed out: nothing answered in time. Typical causes are a wrong address, a firewall that silently drops traffic, missing port forwarding or a network outage.

Fixes for players

  1. Put the address in our server status checker. Pick the right edition and include the port if the server uses one.
  2. Check the address for typos and the port after the colon.
  3. Make sure you use the right edition. Java and Bedrock can't join each other's servers unless the server supports crossplay.
  4. Restart Minecraft and turn off any VPN or proxy for a moment.
  5. Try another server from the server list. If several unrelated servers fail, the problem is your own connection.
  6. Ask someone else to try. If nobody gets in, tell the server owner.

Fixes for server owners

  • Check the console: did the server finish starting without errors?
  • On Java, check server-port in server.properties (25565 by default) or the port your host assigned.
  • Leave server-ip= empty unless you know you need it, so the server listens on every network interface.
  • Allow incoming TCP traffic on the Java port in your firewall. Bedrock servers need UDP on their port (19132 by default).
  • Hosting at home? Check port forwarding in your router, and ask your ISP whether you are behind carrier-grade NAT.
  • On a hosting panel, make sure the public port in the panel matches the port in your config.

Test from outside your network

On Windows, run Test-NetConnection play.example.net -Port 25565 in PowerShell to test a Java server's TCP port. A successful test means the port accepts connections; it doesn't prove that logging in works, and it doesn't test Bedrock's UDP port.

Test the public address from another connection, such as mobile data. Many routers can't reach their own public address from inside the network.

Once players can join, add your server to the list.