The "Connection Timed Out" error is one of the most common problems Minecraft players face when trying to join a server. It means the client sent a connection request but never received a response within the timeout window (typically 30 seconds). This guide covers every cause and the exact steps to fix each one.
What the error means
When Minecraft displays "io.netty.channel.ConnectTimeoutException: connection timed out", the client could not reach the server at all. This is always a network-level problem, not a world corruption or mod issue. The server either did not receive the packet, received it but could not respond, or the response never made it back to the client.
Step 1: Check if the server is running
Before debugging anything else, confirm the server process is actually running. SSH into your server and check:
screen -ls
# or
systemctl status minecraft
If you use a game panel like Pterodactyl, check the console tab. A crashed server produces a timed-out error on the client side that looks identical to a network problem. Check the latest.log for exceptions or out-of-memory errors.
Step 2: Verify the correct IP and port
Double-check the IP address and port in the Minecraft multiplayer menu. Common mistakes:
- Using the internal/local IP (192.168.x.x or 10.x.x.x) instead of the public IP when connecting over the internet.
- Forgetting to add the port if it is not the default 25565. If your server runs on port 25566, enter
your.ip:25566. - Mixing up Java Edition and Bedrock Edition ports. Java defaults to 25565 (TCP), Bedrock to 19132 (UDP).
Step 3: Firewall and port forwarding
This is the most common cause. The server is running, but a firewall blocks incoming connections.
On the server (Linux):
# Check current rules
sudo iptables -L -n | grep 25565
# Or with ufw
sudo ufw status
# Allow the port
sudo ufw allow 25565/tcp
On a home network: Log into your router (usually 192.168.1.1) and forward port 25565 TCP to the local IP of the machine running the server. Every router brand has a different interface, but the setting is usually under "Port Forwarding" or "NAT".
Cloud/VPS hosting: Check the provider dashboard for a security group or firewall panel. Some providers (AWS, Oracle Cloud) block all ports by default until you add an inbound rule.
Step 4: server.properties settings
Open server.properties and check these values:
server-ip=
server-port=25565
enable-query=true
network-compression-threshold=256
Leave server-ip blank (empty) unless you have multiple network interfaces and need to bind to a specific one. Setting it to the wrong IP is a frequent cause of connection failures. If you changed server-port, make sure your firewall and client both use the same port.
Step 5: Java and memory settings
An overloaded server may accept the TCP connection but fail to respond to the Minecraft handshake before the timeout. Check your startup flags:
java -Xms2G -Xmx4G -jar server.jar nogui
If you set -Xmx higher than the available RAM, the JVM will swap to disk and become unresponsive. Use free -h to verify you have enough memory. For servers with 20+ players, allocate at least 4 GB. Use the Aikar flags for better garbage collection performance.
Step 6: Client-side network checks
If other players can connect but you cannot, the problem is on your end:
- VPN or proxy: Some VPNs block game traffic or add enough latency to cause a timeout. Disconnect your VPN and try again.
- ISP blocking: Rare, but some ISPs block gaming ports. Test by using a mobile hotspot as a temporary connection.
- DNS issues: If the server uses a domain name, try the raw IP instead. Flush your DNS cache:
ipconfig /flushdnson Windows. - Windows Firewall: Make sure
javaw.exeis allowed through Windows Defender Firewall for both private and public networks.
Step 7: Anti-DDoS and rate limiting
If your server uses DDoS protection (Cloudflare Spectrum, TCPShield, or a hosting provider with built-in protection), check if your IP has been rate-limited. Some anti-DDoS systems block clients that reconnect too quickly. Wait 5 minutes and try again, or check the protection dashboard for blocked IPs.
Quick diagnostic checklist
Run these commands from your local machine to narrow down the problem:
# Can you reach the server at all?
ping your.server.ip
# Is the port open?
nc -zv your.server.ip 25565
# or on Windows:
Test-NetConnection your.server.ip -Port 25565
# Trace the network path
traceroute your.server.ip
If ping works but nc fails, it is a firewall issue. If ping also fails, the server may be down or the IP is wrong. If both work but Minecraft still times out, the server process itself is not responding (crashed, overloaded, or bound to the wrong interface).
Does this error mean my world is corrupted?
No. "Connection timed out" is purely a network error. Your world data is safe. The client never reached the server, so nothing was read from or written to the world files.
Why can some players connect but not others?
This usually means the server is working fine, but the affected player has a local issue: a firewall, VPN, ISP restriction, or incorrect IP. Have them try from a different network (mobile hotspot) to confirm.
I just set up the server and nobody can connect. What did I miss?
In 90% of new-server cases, the port is not forwarded or the firewall is blocking it. Run the nc -zv test above from outside your network. If the port is closed, fix the firewall first before troubleshooting anything else.
Can server plugins cause this error?
Not directly. A plugin cannot cause a network timeout because the timeout happens before any plugin code runs. However, a badly written plugin can crash the server or make it unresponsive, which produces the same error from the client perspective. Check your server logs if the process is running but not accepting connections.
Why HostValues?
With HostValues game hosting, you never deal with port forwarding, firewall rules, or Java configuration. Our Minecraft servers come pre-configured with optimized JVM flags, automatic DDoS protection, and ports that are open and ready from the moment you start your server. Choose from six locations across Europe and North America, with NVMe storage and AMD Ryzen 9 7950X CPUs for lag-free gameplay. See all game hosting plans.