FIX: An existing connection was forcibly closed on Minecraft

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from Windows to iOS and streaming services... Read more
Affiliate Disclosure
  • Seein the Minecraft an existing connection was forcibly closed error will stop you in your tracks while playing the game.
  • To start fixing this problem, disable Windows Firewall and add Java SE Binary to the exception list.
  • Explore our thorough PC Games Hub for more interesting and useful information.
  • Don't forget to check out our detailed Minecraft section for more useful tips and tricks for Minecraft. 
an existing connection was forcibly closed on Minecraft
To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

When trying to log in or access your Minecraft server, you may encounter the ‘An existing connection was forcibly closed by the remote host’ error. The full error reads:

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

This error can occur due to multiple reasons, and the solution will vary accordingly. The common reasons for the error include firewall blocking the connection, internet connection, and router issues.

In this article, we take a look at some of the common solutions to help you resolve an existing connection that was forcibly closed by the remote host error on your Minecraft server.

How do I fix the Minecraft server error java.io.ioexception?

1. Turn off Windows Firewall

Existing connection was forcibly closed
  1. Click on Start and select Settings.
  2. Open Update and Security.
  3. Click on Windows Security.
  4. Scroll down and click on Firewall and network protection.
  5. Click on your currently active network.
  6. Toggle the switch to turn off the Windows Firewall.
  7. Once disabled, launch Minecraft to see if the error is resolved.

If the error is fixed, disable public access for Java™ Platform SE Binary. Here is how to do it.

Existing connection was forcibly closed
  1. Press Windows Key + R.
  2. Type appwiz.cpl and click OK.
  3. In the Control Panel, go to System and Security.
  4. Open Windows Defender Firewall.
  5. Click on Allow an app or feature through Windows Defender Firewall link from the left pane.
  6. Locate Java™ Platform SE Binary.
  7. Check the Private box for the option. If there is more than one option for Java Platform, mark all of them as Private.
  8. Click OK to save the changes.
  9. Reboot the computer and try to connect to the server to see if the error is resolved.

2. Change server-side view distance

Existing connection was forcibly closed
  1. Stop the server if running.
  2. Click on Files.
  3. Select Cong Files.
  4. Select Server Settings.
  5. Locate the View Distance option.
  6. Change it to 4.
  7. Scroll down and click Save to apply the changes.
  8. Start your server and check for any improvements.

Lowering the server view distance seems to have worked for multiple users. However, if the issue persists, lowering the player’s render distance to lower settings can help as well. You can change it in the video settings.

3. Chane your IPv4 DNS address

Minecraft server error java.io.ioexception
  1. Press Windows Key + R to open Run.
  2. Type control and click OK.
  3. In Control Panel, go to Network and Internet.
  4. Click on Change Adapter Settings from the left pane.
  5. Right-click on your network adapter and select Properties.
  6. Scroll down and double-click on Internet Protocol Version 4 (TCP/IPv4).
  7. Select Use the following DNS server addresses option.
  8. Enter the following in the Preferred and Alternate DNS server field, respectively:
    8.8.8.8
    8.8.4.4
  9. Click OK to save the changes.

Apart from the Google DNS server address mentioned above, you can also use other third-party, public DNS server address if you want. Try starting your server and check if the error is resolved.

4. Check your network for issues

Run a System Scan to discover potential errors

Restoro Scan

Click Start Scan to find Windows issues.

Restoro Fix

Click Repair All to fix issues with Patented Technologies.

Run a PC Scan with Restoro Repair Tool to find errors causing security problems and slowdowns. After the scan is complete, the repair process will replace damaged files with fresh Windows files and components.

If you have a smartphone with cellular data, create a WiFi hotspot on your phone and then connect your computer to the network. Try connecting to the Minecraft server and check if the issue is resolved.

If you are able to connect to the Minecraft server through the hotspot, the issue is mostly with your home network.

Restart your home network

  1. Make sure the router or modem is powered on.
  2. Pull the power from the router to turn it off.
  3. Disconnect the ethernet cable.
  4. Leave the device idle for a few minutes.
  5. Reconnect the Ethernet cable and power on the router.
  6. Wait for all the LED indicators on the router to stop blinking.
  7. Connect your computer to the network and check if the error is resolved.

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

5. Reinstall Java

Minecraft server error java.io.ioexception
  1. Press Windows Key + R to open Run.
  2. Type control and click OK.
  3. Click on Uninstall a program.
  4. Select Java from the list of installed apps.
  5. Click on Uninstall.
  6. Once uninstalled, download and install the latest version of Java.
  7. Reboot the computer and check for any improvements.

6. Reinstall Minecraft

Existing connection was forcibly closed
  1. Press Windows Key + R to open Run.
  2. Type appwiz.cpl and click OK.
  3. Select Minecraft from the list of installed apps.
  4. Click on Uninstall. Click OK to confirm the action.
  5. Once uninstalled, download and reinstall the latest version of Minecraft.

The existing connection was forcibly closed by the remote host when accessing the Minecraft server error can occur if your firewall is blocking the connection. In some instances, incompatible versions of Java, as well as issues with your home network, can cause the problem.

Follow all the steps in the article one by one to fix the error. Do let us know which method helped you resolve the issue in the comments.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on TrustPilot.com (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

Frequently Asked Questions

  • To fix the error, go to Start > Update and Security and disable Windows Firewall. Next, add Java™ Platform SE Binary to the white list. You may also want to check your home network for issues.

  • This error occurs when the client and the host fail to establish a connection. According to Minecraft, the error occurs due to issues with the user’s computer and not their servers.

  • Java IO IOException usually indicates a failure in input and output operation. In Minecraft, the error occurs if the user’s computer fails to connect to the Minecraft server.

This article covers:Topics: