📢 LordCloud support has moved to Ballastra — Join now →
Minecraft Hosting

Minecraft Connection Timed Out: How to Fix It

A Minecraft connection timed out error means your packets never got an answer. This guide shows how to test the address, the port and the firewall in order, so you fix the right layer.

LordCloud Engineering

Infrastructure & Support Team

Published · 7 min read
On this page

A Minecraft connection timed out error means your game sent a request to the server and never got a reply. The fix depends on where the packets die: a wrong address or port, a server that isn't running, a firewall that drops traffic, or something on your own network. You can find which one in about five minutes by testing in order instead of guessing.

The long version of the message usually reads Connection timed out: no further information or Connection timed out: getsockopt. Both are the same failure. Java just wraps the operating system's timeout in slightly different words depending on the platform.

What "connection timed out" actually means#

TCP connections start with a handshake. Your PC sends a SYN packet, the server answers with SYN-ACK, and the game carries on. A timeout means the SYN got no answer at all. That is different from two errors people confuse it with:

  • Connection refused: the machine answered and said nothing is listening on that port. The server is stopped, still starting, or on a different port.
  • Can't resolve hostname: your computer could not turn the name into an IP, so no packet was sent.

Silence usually means one of four things: the IP is wrong, the server is off, a firewall is silently dropping the packet, or the route is broken. Firewalls matter most because they drop rather than reject, which is why the game waits so long before giving up. The Minecraft Wiki server tutorial also notes that timeouts typically point at a firewall issue.

Step 1: Check the address and port#

Do the boring checks first, because they cause most timeouts.

  • Copy the IP or domain straight from your panel or provider instead of retyping it.
  • Java Edition defaults to port 25565. If the server uses another port, you must type address:port, or set up an SRV record so players don't have to.
  • Make sure server-port in server.properties matches the port you are connecting to.
  • Don't connect a Java client to a Bedrock port. Java uses TCP; Bedrock uses UDP, normally 19132, so the same address will time out in the wrong edition.

If you are using a domain, confirm it still points at the right IP. A stale A record sends players to an old machine that will never answer.

Step 2: Make sure the server is really running#

A timeout and a stopped server look identical from the player side. Open your panel console and check that the server finished starting. You want the Done (...)! For help, type "help" line, not a crash or a hang during world load.

If you're on a VPS, check from the server itself:

bash
ss -tlnp | grep 25565

You should see a java process listening on 0.0.0.0:25565 or *:25565. If it only listens on 127.0.0.1, the server accepts local connections only. Check that server-ip in server.properties is empty unless you deliberately want to bind one address.

On managed Minecraft hosting you normally don't touch any of this, because the panel assigns the port and handles the network. The Minecraft troubleshooting docs list common start-up failures.

Step 3: Test the port from outside#

Don't test from the server itself. Localhost working proves nothing about the internet. Test from a different machine, ideally on a different network such as your phone's hotspot.

On Windows PowerShell:

powershell
Test-NetConnection YOUR_SERVER_IP -Port 25565

Look for TcpTestSucceeded : True. The cmdlet is documented on Microsoft Learn, and -Port is the TCP port to test.

On Linux or macOS:

bash
nc -vz YOUR_SERVER_IP 25565

Read the result like this:

Result Meaning
Succeeded / "open" The port is reachable. The problem is client-side or the game version.
Connection refused Host is up, nothing listening. Start the server or fix the port.
Timed out Dropped by a firewall, wrong IP, or no route. Continue to step 4.

LordCloud's own guide on checking whether a port is open goes deeper on reading these results, including UDP, where silence is not a clear answer.

Step 4: Open the port in the firewall#

If the test times out and the server is listening, a firewall is almost always eating the packets. There can be several layers.

Self-managed Linux VPS#

On Ubuntu with UFW, allow the Java port and check the rule list:

bash
sudo ufw allow 25565/tcp
sudo ufw status

The Ubuntu Server firewall docs cover ufw status and rule syntax. Remember that if you run Minecraft in Docker, published ports can bypass UFW entirely, which we explain in Docker and UFW. Also check any cloud-level firewall or security group in front of the machine, because UFW being open doesn't help if a network rule blocks the port first.

Windows server or home PC#

Allow inbound TCP on the port, and make sure the rule covers the Java runtime that actually runs the server. For a server hosted at home you also need to forward the port on your router to the PC's internal IP. If your ISP puts you behind carrier-grade NAT, which is common on Indian mobile and some fibre plans, port forwarding can't work at all, and a hosted server or a tunnel is the practical option.

Hosted servers#

On a hosted plan the node's network is managed for you. If your own test still times out, don't keep poking at it. Collect the evidence in step 6 and send it to support.

Step 5: Rule out your own network#

If another player can join and you can't, the server is fine. Work through these:

  1. Switch networks. Try mobile data instead of Wi-Fi. If it works there, your router, ISP or Wi-Fi is the cause.
  2. Turn off VPN or proxy tools. They can send traffic through a route that drops game ports.
  3. Pause antivirus or third-party firewalls briefly. Some block java.exe or javaw.exe outbound. Re-enable them and add an allow rule if this fixes it.
  4. Flush DNS with ipconfig /flushdns on Windows if you recently changed the domain.
  5. Try a different launcher or Java version, in case the client install itself is damaged.

Schools, colleges and offices often block everything except web traffic. A server that works at home and times out on campus Wi-Fi is the classic version of this.

Step 6: Check the route, then ask for help#

When ports and firewalls are clean, the problem may sit between you and the server. Run an mtr report while the problem is happening:

bash
mtr -rwc 100 YOUR_SERVER_IP

Loss at a middle hop that disappears at later hops is usually a router de-prioritising replies and is harmless. Loss that begins at a hop and continues to the destination is real. Our guide to ping, jitter and packet loss explains how to read the output, and the network troubleshooting docs list what to include in a support request.

If you host with us, a good report contains your city and ISP, the mtr or WinMTR output taken during the issue, the time in IST and the service name. You can open a ticket as described in Creating support tickets. If you're still choosing where to run your world, the Minecraft server hosting plans page lists current options.

Common causes at a glance#

Symptom Likely cause Fix
Times out for everyone Server stopped, wrong IP, or firewall Steps 1 to 4
Times out for you only Your ISP, VPN, antivirus or network Step 5
Works on mobile data only Router or ISP blocks the port Try another DNS, contact the ISP
Times out after domain change Stale or wrong A record Fix the record and wait for DNS
Java works, Bedrock times out Wrong protocol or port Use UDP and the Bedrock port

For Bedrock players joining through Geyser, see the common connection issues page, because UDP behaves differently from Java's TCP.

Frequently asked questions#

What does "Connection timed out" mean in Minecraft?#

It means no reply arrived before the game gave up. Common reasons are a stopped server, a wrong address or port, a firewall dropping packets, or a broken route.

How do I fix "Connection timed out: getsockopt"?#

It is the same timeout with different wording. Verify the address and port, confirm the server is running, test the port with Test-NetConnection or nc, and open TCP 25565 or your custom port in the firewall.

Why can my friend join but not me?#

The server is probably healthy. Test on mobile data, disable VPNs and antivirus temporarily, and run an mtr report to compare routes.

Is "connection refused" the same thing?#

No. Refused means the machine replied and nothing was listening. Timed out means there was no reply.

Frequently asked questions

What does 'Connection timed out' mean in Minecraft?

Your game sent a connection request and nothing came back before it gave up. The server is off, the address or port is wrong, a firewall dropped the packets, or the route between you and the server is broken.

How do I fix 'Connection timed out: getsockopt' in Minecraft?

Treat it as the same timeout. Check the IP and port, confirm the server is running, test the port with Test-NetConnection or nc, and open TCP 25565 (or your custom port) in the server firewall.

Which port does a Minecraft Java server use?

TCP 25565 by default, configurable with server-port in server.properties. Bedrock and Geyser use UDP, usually 19132.

Why can my friend join but I get timed out?

The server is probably fine and the problem is on your side: a VPN, antivirus, school or office network, or an ISP route issue. Try mobile data and run an mtr report to compare.

Is 'Connection refused' the same as 'Connection timed out'?

No. Refused means the machine answered and nothing is listening on that port, so the server is stopped or on another port. Timed out means no answer at all, which points at a firewall, a wrong IP or a dead route.

References

Drafted with AI assistance and checked against LordCloud's published product information. Spotted a mistake?Suggest an edit.

All articles →
Have a question? Chat with us👋