What Does "Connection Timed Out" Mean?
The error "io.netty.channel.ConnectTimeoutException: connection timed out" means your Minecraft client tried to reach the server but received no response within 30 seconds. This is always a network issue, not a problem with your world or mods.
Most Common Causes
1. Firewall is blocking the port. The server port (default 25565 TCP for Java Edition) must be open in both the OS firewall and any cloud/VPS security groups. On Linux: check with sudo ufw status or iptables -L -n | grep 25565.
2. Port forwarding not configured. Hosting on a home network? Forward port 25565 TCP in your router to the local IP of your server machine.
3. Wrong IP or port in the client. Use the public IP, not the local one (192.168.x.x). Is the server running on a non-default port? Add it like this: your.ip:25566.
4. Server process crashed or out of memory. Check the server console or latest.log. If -Xmx is higher than the available RAM, the JVM swaps to disk and becomes unresponsive.
5. server-ip set incorrectly. Leave server-ip= blank in server.properties unless you want to bind to a specific interface.
Quick Diagnostic Commands
# Test if the port is reachable
nc -zv your.server.ip 25565
# Windows equivalent
Test-NetConnection your.server.ip -Port 25565
# Check if the server is reachable
ping your.server.ip
If ping works but the port test fails, it is a firewall issue. If both fail, the server may be down or the IP is wrong.
Client-Side Checks
If other players can connect but you cannot: disconnect your VPN, try a different network (mobile hotspot), flush your DNS cache (ipconfig /flushdns on Windows) and check whether javaw.exe is allowed through Windows Firewall.
Does this error mean my world is corrupted?
No. The timeout occurs at the network level before any world data is accessed. Your saves are safe.
Can plugins cause this error?
Not directly. The timeout occurs before plugin code runs. However, a broken plugin can crash the server, which produces the same error on the client side.
Why HostValues?
With HostValues game hosting, ports are pre-configured and DDoS protection is included with every plan. No firewall hassle, no port forwarding. Check out all game hosting packages.
Tip: at HostValues you can rent a Minecraft server and be online within minutes.