mojira.dev
MC-227913

Servers not loading / Connection Reset Error in 1.17 (Caused by Firewall/AV)

Mod Note

Some things you could try to troubleshoot if your servers aren't loading or if you get a "Internal Exception: java.net.SocketException: Connection Reset" Error since 1.17:

  1. Make sure the new OpenJDK16 is allowed through the Windows Firewall.

    1. Press the Windows Key and type "firewall."

    2. Click on "Allow an app through Windows Firewall."

    3. In the new window, press "O" on your keyboard and look for "OpenJDK Platform Binary."

    4. If you find it, make sure both the checkbox on the left, as well as both checkboxes on the right, are checked. Then click OK and try Minecraft again.

    5. If you do not find that entry, click Change Settings, then click Allow another app...

    6. If you're using the legacy launcher, click Browse, then navigate to:

      C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-delta\windows-x64\java-runtime-delta\bin\

      and select 'javaw.exe', click Open, then Add.

    7. If you're using the Microsoft Store launcher, click Browse, then navigate to:

      C:\Users\user\AppData\Local\Packages\Microsoft.4297127D64EC6_8wekyb3d8bbwe\LocalCache\Local\runtime\java-runtime-delta\windows-x64\java-runtime-gamma\bin\

      and select 'javaw.exe', click Open, then Add. (Note: Your Microsoft. folder may differ from the path here. If so, navigate through each Microsoft. folder in the directory until you find the right one)

    8. Click OK and try Minecraft again.

  2. Try disabling all VPNs, Hamachi, Antiviruses, and firewalls (especially third-party firewalls)

  3. Try on another connection, such as mobile data via wireless hotspot or USB tethering.

  4. Try creating a new profile in the launcher (Installations -> New), setting it to 1.18.2 (not latest release), and trying that new profile.

  5. Try the following on Windows:

    1. Press the Windows Key, then type cmd.

    2. Under 'Command Prompt,' click Run as administrator

    3. Type netsh winsock reset and press Enter.

    4. Type netsh int ip reset and press Enter.

    5. Type ipconfig /release and press Enter.

    6. Type ipconfig /renew and press Enter.

    7. Type ipconfig /flushdns and press Enter.

  6. Please try the steps in this comment by @unknown
    If none of this helps, please contact Community Support for further assistance.

FIXED THE ISSUE.
Firewall was blocking online access for 1.17 and I told it to stop.

I usually play on 1.8 or 1.16 and they work fine, but in 1.17 I'm unable to join any servers. I'm a member on an SMP server which just updated to 1.17, but I'm unable to join, which sucks.
All the servers on the list are Pinging, and trying to load realms gives me this error message:

An error occurred (500):
Could not connect to Realms: Connect timed out

TL;DR

every other version:

full list of working servers (joinable and all)

1.17:

full list of "Pinging..." servers (not so joinable - they just keep loading)

Worth mentioning that this was also happening with the pre-releases.

Linked issues

MC-229210 it wont let me join lan worlds Resolved MC-229444 I can't play on servers " internal exception: java.net.socketexception: connection reset " Resolved MC-229899 java.net.socketexception: connection reset Resolved MC-230093 Multiplayer doesn't ping properly and cannot connect to server Resolved MC-230294 the serves on i play are not pinging i can´t play over one week with my friends on pc . need help pls mdg marc Resolved

Attachments

Comments 86

Hey there! Does this describe your issue with the server list? MC-125762
The part with your Realms issue is invalid as this is a Minecraft: Java Edition Bug Tracker. See a helper's comment on that topic. REALMS-8185

Oliver Sandberg

Hey Martin! No, that doesn't seem to be quite the same issue. Mine happens ONLY in 1.17 and also is never followed by "can't connect to server" (As you can see in my screenshot, the whole server list is pinging and they just never load properly). They also mention that their issue only happens occasionally whereas mine happens every time I load up Minecraft in 1.17

I only mentioned realms to point out that this seems to be an online play issue in general, I don't really care about realms specifically.

Make sure your client operates on Java 16. You can use this tutorial for additional help with updating Java.

This is most likely a technical support issue. Take a look at your firewall settings, something might block your connection. For further assistance please contact the Community Support.

The server side has been a common issue affecting only 1.17. No definite fix/workaround yet, but some things to try:

  1. Make sure the new OpenJDK16 is allowed through the Windows Firewall.

    1. Press the Windows Key and type "firewall."

    2. Click on "Allow an app through Windows Firewall."

    3. In the new window, press "O" on your keyboard and look for "OpenJDK Platform Binary."

    4. If you find it, make sure both the checkbox on the left, as well as both checkboxes on the right, are checked. Then click OK and try Minecraft again.

    5. If you do not find that entry, click Change Settings, then click Allow another app...

    6. Click Browse, then navigate to:

      C:\Program Files (x86)\Minecraft\runtime\java-runtime-alpha\windows-x64\java-runtime-alpha\bin\javaw.exe

      and click Open, then Add.

    7. Click OK and try Minecraft again.

  2. Try disabling all VPNs, Hamachi, Antiviruses, and firewalls (especially third-party firewalls)

  3. Try on another connection, such as mobile data via wireless hotspot or USB tethering.

  4. Try creating a new profile in the launcher (Installations -> New), setting it to 1.17 (not latest release), and trying that new profile.

  5. Try the following on Windows:

    1. Press the Windows Key, then type cmd.

    2. Under 'Command Prompt,' click Run as administrator

    3. Type netsh winsock reset and press Enter.

    4. Type netsh int ip reset and press Enter.

    5. Type ipconfig /release and press Enter.

    6. Type ipconfig /renew and press Enter.

    7. Type ipconfig /flushdns and press Enter.

  6. Come to Community Support linked below to see if there are any other known workarounds.

Thank you for your report!
However, this issue is Invalid.

This is a technical support issue; this site is for bug reports only. We do not have the resources to provide you with technical support.
Please contact Community Support for assistance and refer to this ticket (e.g. "I have reported this issue on Mojira as MC-XYZ.").

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

76 more comments

An employee at the Minecraft support told me, to write a comment here:

I am having this problem ("Internal Exception: java.net.SocketException: Connection reset") on version 1.19 and tried everything in this thread.
I even made a clean installation of Windows 11 and tried different networks (cellular and a different home network). The server was also moved to different hardware.
And all I did was not playing for 4 months. The server configuration was not changed in this time.

I updated my computer and Java.

I tried allowing OpenJDK16 through the Windows firewall but : 
I couldn't find "OpenJDK Platform binary" but  I found javaw.exe
The private checkbox wasnt checked so I checked it. But sadly it didnt fix the error.
I dont use vpns. Never installed hamachi. Only have windows defender as my antivirus.
I also tried while deactivating my private and public firewalls.

I tried with a new profile on latest release. 

I also tried following these steps : 
Try the following on Windows:
Press the Windows Key, then type cmd.
Under 'Command Prompt,' click Run as administrator
Type netsh winsock reset and press Enter.
Type netsh int ip reset and press Enter.
Type ipconfig /release and press Enter.
Type ipconfig /renew and press Enter.
Type ipconfig /flushdns and press Enter.

And these ones : 
Press the Windows Key, then type cmd, right click on "Command Prompt," and click Run as Adminstrator.
Type netsh interface tcp show global and press Enter.
If Receive-Side Scaling State is disabled, type netsh interface tcp set global rss=enabled and press enter.
If "Receive Window Auto-Tuning Level" is disabled, type netsh interface tcp set global autotuninglevel=normal and press enter.
Restart Minecraft and try the realm/server again.

I never had this issue with my old computer and this one is new. 

 

 

 

This issue is not resolved. I tried everything here and it didn't work.

I have this same issue. none of the above fixes it. i only have this issue on my account when trying to play on Realms. java multiplayer to a old school private server works fine. same PC, loads my son's account into Realms just fine. My account on his PC, i still instant disconnected. just to further prove its not on my side, i tried a different NIC, different cat5E, different router, different modem, different ISP, moved states. It seems to be an issue with my account, but the terrible tech support closed my ticket saying i have to type crap on this because according them this is clearly a bug on my side. 

Can we bump this? I did many of the same steps as OP but agree that it seems to be an account issue. I had a LOT of entities loaded for a very long time and this begins my theory. I think having the entities loaded must have kicked me / caused an error on the realm instance/server which SEEMS to have resulted in my account being blacklisted from joining realms servers. My brother’s account works fine on my computer and network.

Oliver Sandberg

(Unassigned)

Unconfirmed

(Unassigned)

1.17

Retrieved