What to do when a remote host forces an existing connection to be shut down

An Existing Connection was Forcibly Closed by the Remote Host

Updated April 2025: Stop these error messages and fix common problems with this tool. Get it now at this link

  1. Download and install the software.
  2. It will scan your computer for problems.
  3. The tool will then fix the issues that were found.

Seeing this particular bug can end your game session and can be incredibly annoying when trying to connect to your favorite Minecraft server. The error “An existing connection was forcibly closed by the remote host” is a Java error and can be caused by various reasons, such as a firewall blocking the connection, the Internet connection itself, or a router problem. We will tell you how you can fix this error and restore the connection to your server.

Playing video games online can be a lot of fun. Players can play their favorite games with their friends. You can find new friends online. Online video games also offer incredible gameplay. Players can spend many hours before they get bored.

Unfortunately, online video games also have some bugs and flaws. Most of these bugs prevent players from playing the game. This can be quite annoying. Some bugs can be fixed with simple troubleshooting steps, while others require waiting for the patch to update.

 

Why do I get this error on Minecraft?

Minecraft is a popular video game where players seem to face many problems. The video game was created using Java, so the game has many Java-related bugs. Internal java.io.io exception: An existing connection was forcibly closed by the remote host, a common problem faced by many Minecraft players.

This error can occur for various reasons. You can easily solve the problem by applying some fixes. Many players were able to solve the problem by themselves. You can do the same by following simple and easy troubleshooting steps.

 

What causes the ‘An existing connection was forcibly closed by the remote host’ error?

What causes the ‘An existing connection was forcibly closed by the remote host’ error

Having received numerous reports from several users, we decided to study the problem and developed a number of solutions to solve it. We also investigated the causes and listed them below.

  • TLS 1.1/1.0 Usage: If the application runs on TLS 1.1 or TLS 1.0, this error can be caused by recording these two programs. TLS 1.2 is the right way to select the protocol used by the application.

 

  • Cryptography Disabled: if cryptography is disabled for your machine, it prevents the use of TLS 1.2 and goes back to TLS 1.0, which can cause an error.

 

  • Socket Implementation: In some cases, a specific type of socket implementation will cause an error. In some “.NET” implementations there is an error that can lead to this error.

 

  • Missing Code: Some people using the Entity Framework have found that a particular line of code was missing, which is what caused the bug.

 

  • Outdated “.NET” Structure: In some cases, when the “.NET” structure is disabled, this error may work. Some tasks require updating the .NET framework to the latest version to work correctly.

 

  • The user is far from the Minecraft server location: This causes the user to be temporarily disconnected from the router. Usually, it is associated with routers under the ASUS brand and their default settings.

 

  • It can also be caused by your firewall.

 

 

How to fix the “An existing connection was forcibly closed by the remote host” error?



Updated: April 2025

This tool is highly recommended to help you fix your error. Plus, this tool offers protection against file loss, malware, and hardware failures, and optimizes your device for maximum performance. If you already have a problem with your computer, this software can help you fix it and prevent other problems from recurring:

  • Step 1 : Install the PC Repair and Optimizer Tool. (Windows 10, 8, 7, XP, Vista).
  • Step 2 : Click Start Scan to determine what problems you are experiencing with your computer.
  • Step 3 : Click Repair Allto resolve all problems.

download



Solution # 1 – Select Enable operating system’s restricted environment

Users have confirmed that they were able to allow the remote host to fail by selecting the Enable limited operating system environment option.

Step 1.) To do this, press the Windows key + the R key combination.
Step 2.) Enter the Control Panel into the “Run” text box and press Enter.

Select Enable operating system’s restricted environment - Step 1 and 2

Step 3.) Click System and Program Security to open the list of applets for this category.
Step 4.) Then click on Java to open the window shown in the figure below.

Select Enable operating system’s restricted environment - Step 3 and 4

Step 5.) In this window, click on the “Advanced” tab.
Step 6.) Next, select the Enable operating system’s restricted environment.

Select Enable operating system’s restricted environment - Step 5 and 6

Step 7.) Select the Apply option.
Step 8.) Click OK to exit.

 

Solution # 2 – Turn off your antivirus program

A remote host error may be caused by third-party antivirus software blocking the connection of the game to the server. Disabling the antivirus software may solve the problem for some users.

To disable the antivirus program, right-click its icon in the taskbar and select Disable or Disable from its context menu.

If you have an option to disable the firewall in the utility context menu, select this option. Then try to play a game with the anti-virus software disabled.

Turn off your antivirus program - Step 1

 

Solution # 3 – Configuring Windows Firewall settings for Java SE binary file

Some users may need to configure the Windows Defender Firewall application’s access settings to executable files on the Java SE platform.

  1. To do this, press the Windows key + the S key combination.
  2. Enter the keyword Firewall in the Windows search program.
  3. Then press Windows Defender Firewall to open this applet.
  4. Click the Allow an app or feature through Windows Defender Firewall option on the left side of the WDF applet.
  5. Click on the Change Settings button.
  6. Scroll down to the Java Platform SE binary options check box option.
  7. Select the private checkboxes for all binary functions of the Java SE platform.
  8. Click the OK button.

Configuring Windows Firewall settings for Java SE binary file - Step 1 to 8

 

Solution # 4 – Reinstallation of JDK

Some users reported that they fixed the remote host bug by reinstalling the JDK (Java).

  1. First, open the accessory “Run”.
  2. Then type appwiz.cpl in the Open from Run field and click OK.
  3. Select Java SE, which is part of the Windows 10 uninstaller.
  4. Click “Uninstall” and “Yes” to remove the Java SE.
  5. After you uninstall Java SE, restart Windows.
  6. Then open your browser.
  7. Click JDK Download to get the latest version of the Java SE.
  8. Then, install the JDK using the installation wizard.

 

Solution # 5 – Flush the DNS cache and restart the router

Other Minecraft Hypixel players fixed remote host bugs by emptying DNS cache.

  1. Type the command Open from runtime and click OK to open the command prompt.
  2. Type ipconfig /flushdns at the command prompt and press Enter.
  3. Close the command prompt.
  4. Reboot the router after resetting DNS. To do this, unplug the router from the wall outlet or press the power button on the router.
  5. Minecraft players may also try to connect to the Stuck.hypixel.net server, which may help solve the problem.

Flush the DNS cache and restart the router - Step 1 to 5

 

Solution # 6 – Turn off the Windows Firewall

  1. Click Start and select Settings.
  2. Open the update and security.
  3. Click Windows Security.
  4. Scroll down and click Firewall and Network Security.
  5. Click on the currently active network.
  6. Toggle the switch to disable Windows Firewall.
  7. After you turn it off, run Minecraft to see if the error is fixed.

If the error is fixed, disable the public access for Java™ Platform SE Binary. Learn how to do this here.

Disable public access for Java™ Platform SE Binary - Step 1 to 8

  1. Press the Windows + R keys.
  2. Enter appwiz.cpl and press OK.
  3. Go to the “System and Security” section on the control panel.
  4. Open the Windows Defender firewall.
  5. In the left pane, click Allow an app or feature through Windows Defender Firewall link.
  6. Find the Java™ Platform SE Binary.
  7. Select the Personal check box. If there are several options for the Java platform, select all options as private.
  8. Click OK to save your changes.
  9. Reboot your computer and try to connect to the server to see if the error is fixed.

 

Solution # 7 – Chane the IPv4 DNS address

Chane your IPv4 DNS address - Step 1 to 9

  1. Press the Windows + R keys to open “Run“.
  2. Log in to the control system and press OK.
  3. In the control panel, go to the Network and Internet.
  4. In the left pane, click Change adapter settings.
  5. Right-click on the network adapter and click Properties.
  6. Scroll down and double-click the Internet protocol version 4 (TCP/IPv4).
  7. Select the Use the following DNS server addresses option.
  8. In the “Preferred or alternative DNS server” field, enter the following :
    8.8.8.8
    8.8.4.4
  9. Click OK to save your changes.

In addition to the above mentioned Google DNS server address, you can also use other public addresses of third-party DNS servers if you wish. Try to start the server and see if the error is fixed.

 

Solution # 8 – Check the network for issues

Check the network for issues - Step 1 to 7

If you have a smartphone with cellular data, create a Wi-Fi hotspot on your phone, then connect your computer to the network. Try to connect to the Minecraft server and see if the problem is solved.

If you can connect to the Minecraft server through the access point, the problem is usually with your home network.

Restart the home network

  1. Make sure that your router or modem is enabled.
  2. Turn off the power to the router to turn it off.
  3. Disconnect the Ethernet cable.
  4. Leave the device idle for a few minutes.
  5. Connect the Ethernet cable and switch the router on.
  6. Wait until all LEDs on the router stop blinking.
  7. Connect your computer to the network and make sure the error is corrected.

If the problem persists, try contacting your Internet Service Provider (ISP) to see if they can help you solve the problem.

 

Solution # 9 – Reinstall your Minecraft program

Reinstall your Minecraft program - Steps 1 to 5

  1. Press the Windows + R keys to open “Run“.
  2. Enter appwiz.cpl and press OK.
  3. Select Minecraft from the list of installed applications.
  4. Click Uninstall. Click OK to confirm the action.
  5. After uninstalling, download and reinstall the latest version of Minecraft.

An existing connection was forcibly closed by the remote host while accessing the Minecraft server. If your firewall blocks the connection, an error may occur. In some cases, the problem may be caused by incompatible Java versions and problems with your home network.



APPROVED: To fix Windows errors, click here.



Frequently Asked Questions

  1. Using TLS 1.1/1.0: If the application is running TLS 1.1 or TLS 1.0, this error can be caused by registering these two programs. TLS 1.2 is the correct way to select the protocol used by the application.
  2. Disabling cryptography: If cryptography is disabled for your machine, it will prevent TLS 1.2 and fall back to TLS 1.0, which can cause an error.
  3. Socket implementation: In some cases, a certain type of socket implementation will cause an error. In some ".NET" implementations, there is a bug that can cause this error.
  4. Missing code: Some Entity Framework users found that a certain line of code was missing, which led to an error.
  5. Outdated ".NET" structure: In some cases, if the ".NET" structure is disabled, this error may occur. Some tasks require the .NET framework to be updated to the latest version to work correctly.
  6. The user is far away from the Minecraft server location: this causes the user to be temporarily disconnected from the router. This is usually associated with ASUS-branded routers and their default settings.
  7. It can also be caused by your firewall.

Solution #1 - Enable your operating system's restricted environment.
Solution #2 - Disable your antivirus program.
Solution #3 - Configure your Windows firewall settings for the Java SE binary
Solution #4 - Reinstall JDK
Solution #5 - Clear your DNS cache and restart your router.
Solution #6 - Disable Windows Firewall
Solution #7 - Change the IPv4 DNS address.
Solution #8 - Check for network problems
Solution #9 - Reinstall Minecraft

  1. Press Windows + R to open "Run".
  2. Type appwiz.cpl and press OK.
  3. Select Minecraft from the list of installed apps.
  4. Click Uninstall. Click OK to confirm the action.
  5. After uninstalling, download and reinstall the latest version of Minecraft.

Minecraft is a popular video game in which players seem to encounter many problems. The video game was created using Java, so there are many Java-related bugs in the game. Internal java.io.io exception: An existing connection was forcibly closed by a remote host, which is a common problem many Minecraft players encounter.

This error can occur for several reasons. You can easily solve the problem by applying several patches. Many players have been able to solve the problem on their own. You can do the same by following simple and easy troubleshooting steps.