Home » How To » An existing connection was forcibly closed by the remote host Minecraft

An existing connection was forcibly closed by the remote host Minecraft

The reason you are here is that you got this connection error in Minecraft realm.

Connection Lost

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

It’s alright, errors happen. Especially when it involves a PC game that requires access through a server.

The good thing here is that I have provided a solution that would resolve this error below but, I think it will benefit you more if you understand what the error is and why you are getting it.

Last update on 2023-03-17 / As an Amazon Associate, we earn from qualifying purchases. / Images from Amazon Product Advertising API

What Is Internal Exception: java.io.IOException?

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

This is a connection error in Minecraft that occurs when your computer is trying to establish a connection to the Minecraft server you chose. Then the connection gets interrupted while travelling between the server and your computer.

This simply means that the host and the clients failed to establish a connection which then leads to the error.

How to Fix Minecraft Internal Exception Java.io.ioexception

Minecraft has stated on its website that the connection error has nothing to do with their servers but its user’s computers.

Here’s how you can troubleshoot your computer to fix the connection error,

1. Switch Windows Firewall Off

Here’s how,

1. Open windows settings with the following command on your keyboard:

Windows key + I
Windows settings

2. Click on update and security.

update and security in windows settings

3. Select windows security by your left-hand side.

windows security tab

4. Click on firewall & network protection in the protections area section.

firewall and network protection

5. Check for the network that is currently active and click on it. To know which network is active, you will see (active) beside your network.

active network

6. Under Microsoft defender firewall, switch the toggle off to disable windows firewall.

disable windows firewall

7. Restart Minecraft to check if the error is gone. If the error is gone, then next for you to do is to complete the troubleshooting with the next step.

RELATED -   How to Change Font Size on Windows 10 Easily

Here’s how,

Disable Public Access For Java™ Platform SE Binary

1. Search and select control panel in windows search.

control panel result in windows search

2. Change view by to small icons.

small icons in command prompt

3. Click on windows defender firewall inside control panel.

windows defender firewall inside control panel

4. By your left-hand side, select allow an app or feature through windows defender firewall.

windows defender firewall

5. Click on change settings.

save settings in windows firewall

6. Look for Java™ Platform SE Binary inside allowed apps and features.

7. Once located, check the box as private. If you find multiple Java™ Platform SE Binary, check all of them as private.

allow apps in windows firewall

8. Click on ok.

ok in windows firewall

9. Restart your computer.

Once your computer boots back up, you shouldn’t get the Internal Exception Java.io.ioexception error in Minecraft anymore.

2. Enable Native Sandbox

Here’s how,

1. Search for configure Java in windows search.

configure java in windows search

2. Click on configure Java in the search result.

configure java in search result

3. Navigate to the advanced tab.

advanced tab in java control panel

4. Scroll down to the advanced security settings section.

java advanced security settings

5. Check the box beside enable the operating system’s restricted environment (native sandbox).

enable native sandbox in java control panel

6. Click on apply then ok.

ok in java control panel

7. Launch Minecraft to see any improvements.

3. Use a VPN

testimony of minecraft users that resolved existing connection error with protonvpn

Some Minecraft users that have this same error discovered that the error ultimately resolved itself after using a VPN.

There’s a high chance this will work for you as well.

All you have to do is to download ProtonVPN and install it on your computer.

They have a trial version for you test it with.

After installing the software on your computer, connect to a region that is very close to your location.

Once you’ve done all that, launch Minecraft to check if you are still getting the error.

RELATED -   Not Enough Memory To Open This Page

4. Change Your DNS Address

You can use any DNS server of your choice, but for the sake of this tutorial, we will use the Google DNS server.

Here’s how,

1. Search for control panel in windows search.

search control panel in windows search

2. Click on control panel from the search result.

searching for control panel

3. Set the view by to small icons by your top right-hand corner.

small icons in command prompt

4. Click on network and sharing center inside control panel.

network and sharing center in control panel

5. Click on change adaptor settings by your left-hand side

change adapter settings

6. Right-click on the network you are connected to and select properties.

wifi properties

7. Now, double click on Internet Protocol Version 4 (TCP/IPv4) to open its properties.

internet protocols in wifi properties

8. Check the use the following DNS server addresses option.

internet protocol dns server

9. Type in the following DNS respectively:

  • Preferred DNS server –
  • Alternate DNS server –
changing dns address

10. Click on ok.

ok in internet protocol

11. Run Minecraft to see if your problem is resolved.

5. Lower Your Server-side View Distance

By lowering the server-side view distance, you shouldn’t get the Internal Exception Java.io.ioexception error anymore in Minecraft realm.

minecraft view distance

Here’s how,

1. Stop the server if it’s active.

2. Click on files.

3. Click on config files.

4. Select the server settings.

5. Scroll down a little bit to find the view distance option.

6. Once you find it, reduce the number to 4.

7. Click on save.

8. Restart your server

9. Launch Minecraft to see if you don’t get the error again.

6. Check Your Network

checking network connection

There’s a high chance the java.io.IOException Minecraft error is caused by your ISP (internet service provider).

RELATED -   How to Change Mouse Sensitivity [3 Ways]

A simple way to confirm this is to create a mobile hotspot on your smartphone and then connect your computer to it.

Once you’ve done that, launch Minecraft to see if you get the Internal Exception Java.io.ioexception error.

If you don’t get the error, it means the problem is from your network.

And a simple way to fix this is to restart your network.

Restart Your Network

Here’s how,

1. Turn off your modem or router by disconnecting all cables.

2. Leave your device idle for at least 5 minutes.

3. Reconnect your devices and hold on for a while for it to fully come up.

4. Connect your computer to the network and try Minecraft real again to see if the error is fixed

If the issue continues, you should contact your network provider for technical assistance.

7. Reinstall Java

If the error persists, you should consider uninstalling and reinstalling Java.

Here’s how,

1. Search and select command prompt in windows search.

control panel result in windows search

2. Set the view by at the top left to small icons.

small icons in command prompt

3. Click on programs and features in command prompt.

programs and features in control panel

4. Look for the Java program file. When you find it, right-click on it and select uninstall. If Java refuses to uninstall, use this guide to uninstall stubborn programs.

uninstalling java

5. After uninstalling, you want to download the latest version of Java and install it on your computer.

6. Run Minecraft to see if you still get the java.io.IOException Minecraft error.

8. Reinstall Minecraft

If reinstalling Java doesn’t fix the error, then you should reinstall Minecraft itself.

Use the instructions I provided in step 6 to uninstall Minecraft.

When you are done uninstalling Minecraft, you should download and install it on your computer again.

More on this Topic

Why Is My Steam Download Speed So Slow

I understand how frustrating a slow download speed can be on steam when you've been waiting too long for just ...

How To Stop Avast Browser From Opening On Startup

Today, I will show you how to stop Avast Browser from opening on startup on your computer. I understand how ...

Why Is My Taskbar White? Windows 10 fix

There are certain reasons why your taskbar has turned white on your computer. These reasons will be shown in this ...

Where Is Clipboard On iPhone? [For all iPhone Models]

If you're like me, you rely on your iPhone clipboard to store information that you need to access quickly. But ...

[SOLVED] Laptop Power Button Not Working On Dell, HP, Lenovo, Acer

Do you know that it is possible to turn on your Dell, HP, Lenovo, Acer laptop without a power button? ...

How to Repair Programs in Windows 10

Programs can get damaged or corrupted on Windows 10 but it doesn't mean it cannot be repaired easily. On windows ...

Leave a Comment

%d bloggers like this: