Fix 'Connection Timed Out' Minecraft Server Error
Troubleshoot and fix the 'Connection Timed Out' error when joining a Minecraft server, port forwarding, firewalls, DNS and ISP issues explained.
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:
- Find the server machine's local IP: run
ip addr(Linux) oripconfig(Windows). - Log in to your router's admin panel (usually
192.168.1.1or192.168.0.1). - Create a port-forwarding rule: external port 25565 TCP to internal IP, port 25565.
- 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.propertiesand forwarding that instead. - Running a traceroute:
tracert play.example.com(Windows) ortraceroute 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
- Ping the server IP, does it respond?
- Is the server process running and bound to the correct port?
- Is port 25565 open in both the OS firewall and the router/cloud firewall?
- Can you connect from
localhoston the server machine itself? - Does the server appear on a port checker like mcsrvstat.us?
Want to just play without the headaches? Join Astroworld MC, IP play.astroworldmc.com, Java + Bedrock.