@rahuls
Minecraft Oct 07, 2026

Friend gets connection timed out getsockopt joining my minecraft server

Hosting a Java server on my PC. I can join locally but my friend gets connection timed out: getsockopt. Port 25565 is forwarded and Windows firewall has a rule for Java. What else could be blocking it?
2

Leave A Reply

Log in to post an answer.

2 Answers

michaels Oct 29, 2026
rahuls
also open server.properties and check the server-ip line. if anything is typed there, clear it so the server listens on every address, then restart it. a wrong ip in there gives exactly this error.
andreew Oct 14, 2026
rahuls
That error means their connection never reached your server at all, so it's a network problem rather than Minecraft. Check these in order: - they're using your PUBLIC ip, not the 192.168.x.x one - port 25565 is forwarded on your router to the PC running the server - Windows firewall allows Java (both private and public) or the port itself - the server is actually up when they try If your ISP uses CGNAT, port forwarding won't work no matter what you do. A VPN-style tool like Tailscale or ZeroTier gets around that, you both install it and they connect to your Tailscale address instead.