How To Fix java.net.SocketException Connection Reset Error In Minecraft

share to other networks share to twitter share to facebook
How To Fix java.net.SocketException Connection Reset Error In Minecraft 2022
Credit: Minecraft

Getting the "Internal Exception: java.net.SocketException: Connection Reset" error in Minecraft? Don't panic, you can fix it yourself!

Although Minecraft is a very popular game among millions of people, it's not free from bugs or problems. Some of the common errors people experience while playing Minecraft include internal server error, connection reset error, network error, and more.

Advertisement

We've put together this guide, to help you to get past the annoying java.net.SocketException Connection Reset error. Let's get started!

How To Fix Internal Exception java.net.SocketException Connection Reset Error

The java.net.SocketException Connection Reset error seems to happen only on Minecraft 1.17 Java Edition in Windows. When the error occurs, players are disconnected from the server and are unable to play the game.

If you have been hit with this Internal Exception error, Mojang recommends you try the following troubleshooting tips to fix it.

  • Disable all VPNs, Hamachi, Antiviruses, and firewalls (especially third-party firewalls)
  • Try on another connection, such as mobile data via wireless hotspot or USB tethering.
  • Create a new profile in the launcher (Installations -> New), setting it to 1.18.2 (not the latest release), and trying that new profile.
  • Install Java 16.

However, aside from these, here are a few other potential solutions.

Reset your network stack

When you encounter a networking issue, resetting your network stack is one of the first troubleshooting steps to perform. To do that:

Advertisement
  • Run Command Prompt as administrator.
  • Type netsh winsock reset and press Enter.
  • Input netsh int ip reset and press Enter.
  • Type ipconfig /release and press Enter.
  • Then type ipconfig /renew and press Enter.
  • Type ipconfig /flushdns and press Enter.

Enable Window Auto-Tuning and Receive-Side Scaling

It seems the issue mostly happens when the computer has ever had Hamachi (a hosted VPN service) installed on it at some point, even if it was removed later on. Try enabling the said features:

  • Run Command Prompt as administrator.
  • 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.

Read More: Does Minecraft have game chat?

Allow OpenJDK16 through Windows Firewall

If the issue persists, make sure the new OpenJDK16 is allowed through the Windows Firewall. To do that:

Advertisement
  1. Press the Windows Key and type "firewall."
  2. Click on "Allow an app through Windows Firewall."
  3. In the new window, look for "OpenJDK Platform Binary."
  4. If you find it, make sure both the checkbox on the left and 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...
    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.
  6. Click OK and try Minecraft again.

If none of the above steps works, then try contacting Minecraft Community Support for further advice and assistance.

Hopefully you're Minecraft error is now resolved, and you can get back into the servers. Let's just hope that you don't get hit by the Minecraft multiplayer not working.