An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft

Sheeraz Gul Feb 15, 2024
  1. Causes of the Java.IO.IOException: An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft
  2. Solve the Java.IO.IOException: An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft
An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft

This tutorial demonstrates the causes and solutions to the an existing connection was forcibly closed by the remote host error when using Minecraft.

Causes of the Java.IO.IOException: An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft

Minecraft is a popular game that is developed using Java. Because of its popularity, the server is always busy, which can cause errors.

One of the most common errors while using Minecraft is:

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

This error shows that your computer network has issues and cannot connect to the Minecraft server. Often, this particular issue occurs because of the Windows firewall.

Here are the main reasons for the error an existing connection was forcibly closed by the remote host in Minecraft:

  1. Windows Firewall is closing the connection.
  2. The DNS address can also cause this error.
  3. Server view distance can cause problems.
  4. There is some problem with Java Installation.
  5. Some problems with Minecraft installation.

Solve the Java.IO.IOException: An Existing Connection Was Forcibly Closed by the Remote Host on Minecraft

Let’s see how to solve the causes of this error below:

Disable the Windows Firewall

The most common reason for the error an existing connection was forcibly closed by the remote host in Minecraft is the Windows firewall. If you disable the firewall, the problem will be solved in most cases.

Follow the steps to disable the Windows firewall:

  • Go to the Start menu and open Settings.

    Settings

  • Open Update & Security from settings and then go to Windows Security.

    Windows Security

  • Open Firewall and Network Protection and turn off the Windows Firewall for each option in Windows 10. There will be one option for Windows 8 and 7 to close the firewall.

    Windows Firewall.

  • Once the Firewall is turned off, it is better to restart the computer and run Minecraft.

Turning off the firewall will solve the an existing connection was forcibly closed by the remote host error for Minecraft. Security should disable the public access for Java™ Platform SE Binary; follow the steps below:

  • Now, in the Windows Defender Firewall, select Allow an app or feature through Windows Defender Firewall from the left side.
  • Find the Java™ SE Binary in the list.
  • Once you find one or more Java options, mark them all as Private.
  • Finally, Click OK.

If this doesn’t solve the error an existing connection was forcibly closed by the remote host in Minecraft, then try to restart the network.

Restart the Network

The error an existing connection was forcibly closed by the remote host is a network error while using Minecraft. Restarting the network may solve the problem:

  • Check if your router/modem is powered on. Pull the power off from the router/modem and turn it off.
  • Disconnect the ethernet cable.
  • Wait for a few minutes, then reconnect the ethernet cable.
  • Power on the router, and wait until it connects to the internet.
  • Connect your computer to the network.

If your device has WIFI, it also can have a problem. You can check it by connecting the computer to the internet with a cable.

Change the DNS Address

If the above solutions are not working, changing the DNS address for the network may solve the error. Follow the steps to change the Network DNS address:

  • Go to Settings from the Start menu and open Network & Internet.
  • Select Change Adapter Options.

    Change Adapter Options

  • On the Change Adapter Options page, right-click on the network you are using and select Properties.

    Network Properties

  • Double click on Internet Protocol Version 4 (TCP/IPv4), which will open its properties.
  • Click on the Use the following DNS server addresses and insert the following addresses.
    Preferred DNS server: 8.8.8.8
    Alternate DNS server: 8.8.4.4
    

    Internet Protocol Version

  • Click OK to save the changes.

Changing the DNS address should solve the an existing connection was forcibly closed by the remote host error on Minecraft. If it doesn’t, there are other fixes.

Server-Side View Distance

If the problem is still not solved even after changing the DNS address, modifying the Server-Side view distance might solve the problem.

For many, modifying the server-side view distance solved the an existing connection was forcibly closed by the remote host error. Follow the steps to modify the server view distance:

  • If your Minecraft server is running, then stop it.
  • Click on Files and open Choose Files.
  • Open Server Settings.

    Server View Distance

  • Go to View Distance and change it to 4 or another number.
  • Start your server.

The above solution also solves the an existing connection was forcibly closed by the remote host error while using Minecraft.

Reinstall Java

If there is a problem in Java installation, it can also cause the an existing connection was forcibly closed by the remote host. Reinstalling Java will solve the problem.

Follow the steps below to reinstall Java:

  • Open Control Panel and then Uninstall a Program.
  • Select Java and click Uninstall.

    Java Uninstall

  • Once it is uninstalled. Download the latest version of Java from here.
  • Install Java by running the installer.
  • Restart the computer and run Minecraft.

Reinstall Minecraft

If all of the solutions above do not work, there might be some issue with Minecraft installation, causing the an existing connection was forcibly closed by the remote host error.

Reinstalling Minecraft may solve the problem. Follow the steps below to reinstall Minecraft:

  • Similarly, Open Control Panel and choose to Uninstall a Program.
  • Find Minecraft and Click Uninstall.
  • Download and Install the new version of Minecraft from here.

Reinstalling Minecraft is the last solution we can apply to resolve an existing connection was forcibly closed by the remote host in Minecraft.

If all the solutions described above are still not solving the problem, then there is only one way to contact the Minecraft support team.

Author: Sheeraz Gul
Sheeraz Gul avatar Sheeraz Gul avatar

Sheeraz is a Doctorate fellow in Computer Science at Northwestern Polytechnical University, Xian, China. He has 7 years of Software Development experience in AI, Web, Database, and Desktop technologies. He writes tutorials in Java, PHP, Python, GoLang, R, etc., to help beginners learn the field of Computer Science.

LinkedIn Facebook

Related Article - Java Error