mojira.dev
MC-272195

Unable to connect to multiplayer games (getsockopt) on 24w14a/1.20.5 and above

Updated my server to 1.20.6 and I am unable to join it.  Getting the error Connection timed out: getsockopt .

 

Please note I have tried many different server software and have gotten the same issue. My current tested versions are as follows: Vanilla, Paper, Spigot, Fabric, and Purpur.

I have also tested various clients, clients I have tested follows: Vanilla and Fabric (With and without mods)

 

On my pc I have java SE, java, javaw, and javaw.exe with firewall permissions in both private and public. On the server host machine I have the same fields set. 

 

=====OS and Java Ver=====

My pc is running on Windows11, and has Java22 installed. 

The server is running on Windows10server, and has Java22 installed.

 

I have not changed anything on either pc when related to firewalls, port-forwarding, or IP [As I have a static IP Address].  As well when opening the Multiplayer tab there was no pop-up asking for Windows Firewall permissions, unlike every new version which asks for Windows Firewall permissions. 

I have looked around many forums about this issue and their solution is to disable Windows Defender / Windows Firewall on the Host and Client. I do not wish to do that as it leaves many doors open for malicious attackers, both to my server and the people who play on the server.

 

Please, if you see this we the community would like this fixed as soon as possible. 

 

Thank you,

UnarmedShadow

 

As requested by a Mod here is a video of the issue on the left is my client trying to connect to the server on the right. You can see that the server doesn't recognize the client attempting to connect. While the client throws error GetSockOpt. This is not an IP issue as I can run server below 1.20.5+ without this issue. 

 

Video: https://youtu.be/OtvuRXCnRqI

 

Addition (Dunno if I should make this a new Report): Making my host machine use Java 21 or above  has stopped all servers below 1.20.0 from functioning.  This is getting out of hand.

 

Linked issues

MC-271152 Cannot join LAN servers in 1.20.5 Resolved MC-271300 Unable to play LAN game after 1.20.5 update Resolved MC-271817 1.20.6 has a BIG problem with servers Resolved MC-272145 Non-Standard Ports dont work. Resolved MC-272257 getsockopt error Resolved

Comments 9

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Would MC-271817 describe your issue? Based off the comment by @unknown in that report, this may be an issue with your firewall and java 21 version.

No I highly doubt it is an issue with my fire wall as nothing was editied in its settings pre or post update

 

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

A new java executable will make your operating system put up a new prompt for firewall approval. If you dismissed this, the game will be unable to connect - here is a help resource on how to resolve that.

Not the best formatted, but here is a rough guide on how to add Minecraft 1.21 to your firewall which should solve this issue: https://github.com/Greymagic27/Minecraft-Database/blob/main/GetSockOPT-workaround.md

If it does not, please seek further help from community support.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

@greymagic27 opening javaw.exe does nothing

.

Please refer to community support for further help with this issue.

UnarmedShadow

(Unassigned)

Community Consensus

(Unassigned)

conneciton, serious, server

1.20.6

Retrieved