- 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.
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.
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.
- To do that, press the Windows key + R keyboard shortcut.
- Enter Control Panel in Run’s text box, and press the Return keyboard key.
- Click System Security and Programs to open a list of applets for that category.
- Then click Java to open the window in the shot directly below.
- Select the Advanced tab on that window.
- Then select the Enable operating system’s restricted environment option shown directly below.
- Select the Apply option.
- 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.
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.
- To do that, press the Windows key + S keyboard shortcut.
- Input the keyword firewall in Windows’ search utility.
- Then click Windows Defender Firewall to open that applet.
- Click the Allow an app or feature through Windows Defender Firewall option on the left of the WDF applet.
- Click the Change settings button.
- Scroll down to the Java Platform SE binary check box options.
- Select the Private check boxes for all the Java Platform SE binary features listed.
- Click the OK button.
4. Reinstall JDK
Some users have said they’ve fixed the remote host error by reinstalling JDK (Java).
- First, open the Run accessory.
- Next, input appwiz.cpl in Run’s Open box; and click the OK option.
- Select Java SE listed on Windows 10’s uninstaller.
- Click Uninstall and Yes to remove Java SE.
- Restart Windows after uninstalling Java SE.
- Next, open a browser.
- Click JDK Download for the latest version on the Java SE Downloads page.
- 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.
- Enter cmd in Run’s Open box and click OK to open the Command Prompt.
- Input ipconfig /flushdns in the Prompt, and press the Enter key.
- Close the Command Prompt.
- Restart your router after flushing DNS. You do that by unplugging the router, or pressing its on/off button.
- 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.
Editor's Note: This article was originally published in March 2020 and was revamped and updated in July 2020 for freshness, accuracy, and comprehensiveness.