Skip to main content
Troubleshooting

How to Fix Connection Timed Out in Minecraft

Fix Minecraft 'Connection Timed Out' errors. Covers DNS resolution, ISP routing, MTU settings, and firewall troubleshooting for Java Edition multiplayer.

7 min read9 sectionsJava & Bedrock1.21

The Error

java.net.ConnectException: Connection timed out: connect
Connection timed out: no further information

This error means your Minecraft client sent a connection request to the server but received no response within the 30-second timeout window. The packets are being lost or blocked somewhere between you and the server. Unlike "Connection Refused" (where the server rejects you), a timeout means silence, your request never arrived or the reply never made it back.

Quick Fix

Verify the server IP and port are correct. Then test your internet connection by pinging the server: ping play.example.com. If the ping fails, the issue is DNS, routing, or the server being offline. If the ping works, the server's Minecraft port might be blocked.

Step-by-Step Diagnosis

  1. Verify server status. Ask the server owner or check the server's website/Discord for status updates. The server might be offline for maintenance.
  2. Ping the server IP. Open a terminal and run ping play.example.com. If you get "Request timed out" or 100% packet loss, you cannot reach the server at all. If you get responses, the machine is reachable but the port may be blocked.
  3. Check DNS resolution. Run nslookup play.example.com. If it returns an error, your DNS is not resolving the domain. Try switching to Google DNS (8.8.8.8) or Cloudflare DNS (1.1.1.1).
  4. Flush DNS cache. On Windows: ipconfig /flushdns. On macOS: sudo dscacheutil -flushcache. On Linux: sudo systemd-resolve --flush-caches.
  5. Run a traceroute. tracert play.example.com (Windows) or traceroute play.example.com (Linux/Mac). Look for hops where latency spikes or packets are lost. This identifies whether the issue is on your ISP's network or further along the route.
  6. Disable VPN. VPNs add routing hops and can cause timeouts. Disable your VPN and try connecting directly.
  7. Try a different network. Connect via mobile hotspot to test. If the server works on a different network, the issue is your home network or ISP.
  8. Lower MTU size. If you are behind a network with a low MTU (common in some campus and corporate networks), Minecraft packets may be silently dropped. On Windows: netsh interface ipv4 set subinterface "Ethernet" mtu=1400 store=persistent.

Common Causes

  • Server is offline. The simplest explanation. Verify with the server community.
  • Incorrect IP address. A typo in the IP or an outdated domain that no longer points to the server.
  • DNS issues. Your DNS resolver cannot look up the domain. Switch DNS providers.
  • ISP blocking. Some ISPs block traffic on port 25565. Test with an alternative port or use a VPN.
  • DDoS protection. Some DDoS protection services (like TCPShield or Cloudflare Spectrum) may block your IP if you are flagged. Contact the server admin.
  • Geographic routing. Players on the other side of the world from the server experience more routing hops, increasing the chance of timeout. A VPN with a server close to the Minecraft server's location can improve routing.

What Causes "Connection Timed Out"?

The minecraft connection timed out error means your client sent a connection request to the server's IP and port but never received a response within the timeout window (usually 30 seconds). This is a network-level problem, your client cannot reach the server at all.

This is different from "Connection Refused" (where the server actively rejects the connection) or authentication errors. With a timeout, packets are silently dropped somewhere between you and the server.

Most Common Causes and Fixes

1. Incorrect IP or Port

Double-check the server address. The default Minecraft port is 25565. If the server uses a non-default port, you must include it: play.example.com:25566. A typo in the IP or forgetting the port is the number-one cause of minecraft connection timed out errors.

2. Port Forwarding Not Configured

If you are hosting from home, your router must forward port 25565 (TCP) to the local IP of the machine running the server. Steps:

  1. Find the server machine's local IP: run ip addr (Linux) or ipconfig (Windows).
  2. Log in to your router's admin panel (usually 192.168.1.1 or 192.168.0.1).
  3. Create a port-forwarding rule: external port 25565 TCP to internal IP, port 25565.
  4. Save and restart the router if needed.

Test from outside your network using a tool like mcsrvstat.us to confirm the port is open.

3. Firewall Blocking the Port

Both your OS firewall and any cloud provider firewall (AWS security groups, Oracle Cloud ingress rules, etc.) must allow inbound TCP on port 25565.

  • Linux (UFW): sudo ufw allow 25565/tcp
  • Linux (firewalld): sudo firewall-cmd --add-port=25565/tcp --permanent && sudo firewall-cmd --reload
  • Windows: Open Windows Defender Firewall > Advanced Settings > Inbound Rules > New Rule > Port 25565 TCP > Allow.

4. Server Not Running or Crashed

Confirm the server process is actually running. Check with screen -ls or tmux ls if you launched it in a terminal multiplexer, or check your hosting panel's console. A crashed server will not respond to connections. Check our crash-on-startup guide if the server cannot stay up.

5. ISP or Network Issues

Some ISPs block port 25565, especially on residential connections. If port forwarding is correct and the firewall is open, try:

  • Using a different port (e.g. 25566) in server.properties and forwarding that instead.
  • Running a traceroute: tracert play.example.com (Windows) or traceroute play.example.com (Linux) to see where packets stop.
  • Testing from a mobile hotspot to rule out your home network.

6. DNS Not Resolving

If you use a domain name, make sure your A record points to the correct IP and has propagated. Use nslookup play.example.com to verify. If the IP is wrong or not set, the minecraft connection timed out error will appear because the client tries to connect to a non-existent or wrong address.

Quick Diagnostic Checklist

  1. Ping the server IP, does it respond?
  2. Is the server process running and bound to the correct port?
  3. Is port 25565 open in both the OS firewall and the router/cloud firewall?
  4. Can you connect from localhost on the server machine itself?
  5. Does the server appear on a port checker like mcsrvstat.us?

Need a server that handles all this? Astroworld Hosting, NVMe SSDs, Pterodactyl panel, DDoS protection on every plan.

FAQ

Why can other players connect but I cannot?

Your specific network route to the server has a problem. Other players take different routes through the internet. A traceroute reveals where your connection fails.

The server IP is correct but I still time out. What now?

Try connecting with the numeric IP address instead of the domain name (ask the server admin for it). This bypasses DNS entirely. If the numeric IP works, your DNS is the problem.

Can a firewall cause timeouts instead of "Connection Refused"?

Yes. A firewall configured to "drop" (silently discard) packets causes timeouts. A firewall configured to "reject" (send back an error) causes "Connection Refused". Most firewalls default to drop.

Does connection timeout mean I am IP-banned?

Not usually. IP bans typically show a ban message, not a timeout. However, some DDoS protection systems blackhole suspicious IPs, which looks like a timeout. Contact the server admin if you suspect this.

Questions about Fix Connection Timed Out

Why would you set up Fix Connection Timed Out at all?

This error means your Minecraft client sent a connection request to the server but received no response within the 30-second timeout window.

How do you begin Fix Connection Timed Out?

Verify server status. Ask the server owner or check the server's website/Discord for status updates. The server might be offline for maintenance.

Which command does Fix Connection Timed Out use?

Then test your internet connection by pinging the server: ping play.example.com. This guide uses ping play.example.com.

What goes wrong with Fix Connection Timed Out?

Unlike "Connection Refused" (where the server rejects you), a timeout means silence, your request never arrived or the reply never made it back.

How to Fix Connection Timed Out in Minecraft: Fix Minecraft 'Connection Timed Out' errors. Covers DNS resolution, ISP routing, MTU settings, and firewall troubleshooting for Java Edition multiplayer.
How to Fix Connection Timed Out in Minecraft, from the Troubleshooting guides on Astroworld.

More guides on this site

More Troubleshooting Guides

Related Tools & Databases