Internal exception java.net.socketexception connection reset

  1. Make sure the new OpenJDK16/17 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, Click Browse, then navigate to ↓ and click Open, then Add.
    6. C:\Program Files (x86)\Minecraft\runtime\java-runtime-alpha\windows-x64\java-runtime-alpha\bin\javaw.exe

    7. Click OK and try Minecraft again.

  2. Changing DNS settings
  3. In some cases, your ISP's DNS (Domain Name Server) may have incorrect records. In this case, switching to Cloudflare's DNS may solve the problem Instructions on how to proceed here

  4. Uninstalling/disabling software
  5. Try disabling all Hamachi, Antiviruses, and firewalls (especially third-party firewalls like McAfee)

  6. Try the following on Windows:
    1. Press the Windows Key, then type cmd.
    2. Under 'Command Prompt,' click Run as administrator
    3. Type the following and press Enter each time.
    4. netsh winsock reset

      netsh int ip reset

      ipconfig /release

      ipconfig /renew

      ipconfig /flushdns

  7. Other connections
  8. Try other connections such as mobile hotspot or VPN, or if you don't have a VPN, use Proton VPN or Warp, which are decent free VPNs.