FIX: An existing connection was forcibly closed error

Matthew Adams
by Matthew Adams
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

  • Server connectivity issues are a common occurrence, especially when you are talking about games.
  • The article below covers what you should do when your server connection forcibly closes.
  • For more solutions on similar issues, visit our System Errors Hub.
  • You can also take a look at our Windows 10 Errors page while you're at it.
An existing connection was forcibly closed by the remote host

Some users have posted on game support forums about an An existing connection was forcibly closed error message. The full error message states:

Internal Exception: java.io.IOException: An existing connection was forcibly closed by the remote host.

Ad

The error arises when users try to play games that require connection with a server, such as Minecraft. As a result, players can’t join the games’ servers.


How do I fix the connection forcibly closed error?

1. Select Enable operating system’s restricted environment

Users have confirmed they were able to fix the remote host error by selecting the Enable operating system’s restricted environment option.

  1. To do that, press the Windows key + R keyboard shortcut.
  2. Enter Control Panel in Run’s text box, and press the Return keyboard key.
    Control Panel window An Existing Connection was Forcibly Closed by the Remote Host
  3. Click System Security and Programs to open a list of applets for that category.
  4. Then click Java to open the window in the shot directly below.
    Java Control Panel An Existing Connection was Forcibly Closed by the Remote Host
  5. Select the Advanced tab on that window.
  6. Then select the Enable operating system’s restricted environment option shown directly below.
    Enable the operating system's restricted environment option An Existing Connection was Forcibly Closed by the Remote Host
  7. Select the Apply option.
  8. Click OK to exit.

2. Turn off antivirus software

The remote host error might be due to third-party antivirus software blocking a game’s connection with server. So, turning off antivirus software might resolve the issue for some users.

To disable an antivirus utility, right-click the system tray icon for it and select a disable or turn off option on its context menu.

If the utility’s context menu includes a disable firewall setting, select that option as well. Then try playing the game with the antivirus software disabled.

Disable Auto-Protect option An Existing Connection was Forcibly Closed by the Remote Host


Looking for a reliable antivirus? Check out this article for our top picks!


3. Adjust Windows’ firewall settings for Java SE Binary

Some users might need to adjust Windows Defender Firewall’s app permission settings for Java Platform SE binary.

  1. To do that, press the Windows key + S keyboard shortcut.
  2. Input the keyword firewall in Windows’ search utility.
  3. Then click Windows Defender Firewall to open that applet.
  4. Click the Allow an app or feature through Windows Defender Firewall option on the left of the WDF applet.
  5. Click the Change settings button.
  6. Scroll down to the Java Platform SE binary check box options.
    Java Platform SE binary check boxes An Existing Connection was Forcibly Closed by the Remote Host
  7. Select the Private check boxes for all the Java Platform SE binary features listed.
  8. Click the OK button.

4. Reinstall JDK

Some users have said they’ve fixed the remote host error by reinstalling JDK (Java).

  1. First, open the Run accessory.
  2. Next, input appwiz.cpl in Run’s Open box; and click the OK option.
    The Windows uninstaller An Existing Connection was Forcibly Closed by the Remote Host
  3. Select Java SE listed on Windows 10’s uninstaller.
  4. Click Uninstall and Yes to remove Java SE.
  5. Restart Windows after uninstalling Java SE.
  6. Next, open a browser.
  7. Click JDK Download for the latest version on the Java SE Downloads page.
  8. Thereafter, install JDK with its setup wizard.

5. Flush the DNS cache and restart router

Some Minecraft Hypixel players have fixed the remote host error by flushing DNS cache.

Ad
  1. Enter cmd in Run’s Open box and click OK to open the Command Prompt.
  2. Input ipconfig /flushdns in the Prompt, and press the Enter key.
    The flushdns command An Existing Connection was Forcibly Closed by the Remote Host
  3. Close the Command Prompt.
  4. Restart your router after flushing DNS. You do that by unplugging the router, or pressing its on/off button.
  5. Minecraft players can also try connecting with the Stuck.hypixel.net server, which might help fix the issue.

Those are some of the resolutions that have fixed the remote host error for players. They aren’t entirely guaranteed resolutions for all software the error arises for, but Minecraft players have confirmed those fixes.

Let us know which of these solutions allowed you to play Minecraft again without any issues.

Do so by leaving your feedback in the comments section below.


FAQ: Learn more about server connectivity issues

  • What happens when my connections forcibly close?

When this error triggers, you won’t be able to connect to a game’s server, such as Minecraft.

  • Is the server connection error Java-related?

Given the error message, this is most likely the case.  As such, reinstall and get the latest version of Java to avoid this issue.

  • What can trigger a server connectivity interruption?

One common cause for such issues is antivirus interference. That being said, get an antivirus that has little impact on your system settings.


Ad
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!