The Minecraft launcher may show the ‘Internal Exception Java.IO.IOException’ issue if the Minecraft installation is corrupt or outdated. Moreover, the corrupt DNS cache of the system or improper configuration of Java may also cause the issue at hand.
The issue arises when the user tries to join or connect a server but encounters the following message:
“Connection Lost Internal Exception: java.io.IOException: An existing connection was forcibly closed by the remote host”
Before proceeding with the solutions to stop internal exceptions in Java IO IOException, check if trying another network cable (if using an ethernet connection) resolves the issue. If you have a long username (7+ characters), then check if reducing it to (7 or fewer characters) solves the issue. Also, check if your internet speed meets the minimum speed requirements of Minecraft. Moreover, make sure to log out/disconnect the Minechat (if using) and then close it. Additionally, check if launching the Minecraft launcher (or server) as an administrator resolves the issue.
Solution 1: Update the Minecraft Launcher to the Latest Build
You may encounter the internal exception issue if the Minecraft launcher of your system is outdated as it can create incompatibility between the launcher & server. In this context, updating the Minecraft launcher to the latest release may solve the problem. But before moving on, check if you have more than one account configured with the Minecraft launcher, if so, then remove all the other accounts but one.
- Open the Minecraft launcher & near the username, click on the Options.
- Then click on the Force Update button & apply the launcher update.
- Once updated, relaunch the Minecraft launcher and check if it is clear of the IOexception error.
- If not, check if using another launcher resolves the issue.
Solution 2: Clear the DNS Cache of Your System
The Java.io error may emerge if the DNS cache of your system is corrupt as it may lead to the system’s ability to resolve the domain name. In this context, flushing the DNS cache (which will force the system to re-fetch the combinations) may solve the problem.
- Click Windows, type: Command Prompt, and right-click on the result of Command Prompt. Then choose Run as Administrator.
- Now execute the following one by one:
ipconfig /flushdns ipconfig /release ipconfig /renew
- Then exit the Command Prompt and check if the Java exception issue is resolved.
If the issue persists, then check if changing DNS server (e.g., Google DNS) resolves the internal exception issue.
Solution 3: Disable Server’s Resource Pack
Resource packs allow the players to do a lot of customization (like textures, music, models, splash tests, etc.) but this customization may hinder the client/server communication and thus cause the IOexception issue. In this scenario, disabling the server’s resource pack may solve the problem.
- Open the Minecraft launcher and select Multiplayer.
- Then select the problematic server and click on Edit.
- Now click on Server Resource Packs to set it to Disabled (if enabled) and click on Done.
- Then check if the launcher is clear of the Java.io issue.
Solution 4: Uninstall the Conflicting Applications
You may encounter the Java.io issue if an application on your system is hindering the operation of Minecraft. In this scenario, removing the conflicting application may solve the problem. You can clean boot your PC to find out the problematic application. For illustration, we will discuss the process for the Hamachi VPN (reported by the users to cause the issue).
- Right-click Windows & open Apps and Features.
- Now click on LogMeIn Hamachi to expand it & then click on Uninstall.
- Then follow the prompts to remove Hamachi & reboot your PC.
- Upon reboot, check if the IOexception issue is resolved.
Solution 5: Decrease the Render Distance in the Minecraft Settings
The internal exception issue may arise if Minecraft could not render all the video blocks at once (due to the poor internet speed). In this context, decreasing the Render Distance in the Minecraft settings to the lowest possible may solve the problem.
- Open the Minecraft Launcher & open its Options (it will be also a good idea to lower the Render Distance in the server settings, if possible).
- Now select Video Settings & slide the Render Distance to the lowest possible (e.g., to 2).
- Then check if the Java.io issue is resolved. If so, then you may increase the Render Distance by one till you reach your desired Render Distance.
Solution 6: Edit the Java Settings
The Java.io error may arise if the Java installation of your system is not properly configured. In this context, editing the Java settings (like enabling the Native Sandbox) may solve the problem. But before proceeding, make sure you have only one Java installation.
Update Java to the Latest Build
- Click Windows, type: Configure Java & then open it.
- Now steer to the Update tab & click on the Update Now button.
- If an update is available, apply the Java update & check if the internal exception issue is resolved.
Enable Native Sandbox
- Click Windows, type: Configure Java & open it.
- Now steer to the Advanced tab & checkmark Enable the Operating System’s Restricted Environment (Native Sandbox).
- Then apply your changes & reboot your PC.
- Upon reboot, check if the Minecraft IOexception issue is resolved.
Edit the Java Path in the Launcher Settings
- Right-click Windows & open Run.
- Now navigate to the following path:
\Program Files (x86)\
- Then open the Java folder & steer to the latest version of the Java installation (e.g., the jre1.8.0_291 folder).
- Now open the Bin folder & copy the address from the address bar.
- Then open the Minecraft Launcher & select Edit Profile.
- Now, under Java Settings (Advanced), checkmark the option of Executable.
- Then paste the address (copied at step 4) up to Bin, so the path should be something like below:
C:\Program Files (x86)\Java\jre1.8.0_291\bin\javaw.exe
- Now apply your changes & check if the internal exception issue is resolved.
If the issue persists, then check if reinstalling Java sorts out the IOexception issue.
Solution 7: Repair / Reinstall the Minecraft
The Java.io issue may arise if the Minecraft installation is corrupt. In this context, repairing or reinstalling it may solve the problem.
- Click Windows, type: Control Panel, & launch it.
- Now open Uninstall a Program & select Minecraft.
- Then click on Repair & follow the prompts to repair Minecraft.
- Now reboot your PC & check if the IOexception issue is resolved.
- If not, uninstall Minecraft & Java (make sure to back up the essentials).
- Now reboot your PC & upon reboot, right-click Windows & select Run.
- Then navigate to the following path (copy-paste the address):
- Now open each directory (Local, LocalLow, & Roaming) one by one & delete the Minecraft folders in them.
- Then download the latest versions of Java & Minecraft.
- Then install Java as administrator & reboot your PC.
- Upon reboot, install Minecraft as administrator & check if the internal exception issue is resolved.
Solution 8: Edit the Network-Related Settings
Minecraft may show the internal exception issue if the network settings of your system are not properly configured (or your ISP is blocking access to a resource essential for the operation of Minecraft). In this case, editing the network settings (or trying another network/VPN) may solve the problem.
Try Another Network or a VPN
- Disconnect your system from the current network & connect to another network e.g., the hotspot of your phone to check if the IOexception issue is resolved. You can also check by using a VPN. Also, it will be a good idea to switch between the Wi-Fi and ethernet connection.
- If the issue persists, directly connect the system to the internet without the router to rule out if its configuration causing the issue.
Disable NAT Acceleration in the Router’s Settings
- Launch a web browser & navigate to the Router’s control page.
- Now select LAN (in the left pane) & disable Hardware Acceleration in the Switch Control tab. If the Hardware Acceleration (the Asus branded router feature) is not shown, look for it with different names like CTF (Cut-Through Forwarding) & FA (Flow Accelerator).
- Then apply your changes & check if the internal exception issue is resolved.
Solution 9: Edit the Firewall Settings
You may encounter the internal exception issue if the Firewall of your system is blocking access to a resource essential for the operation of Minecraft. In this context, editing the Firewall settings (like allowing Java (TM) Platform SE Binary in the Firewall settings) may solve the problem. Before proceeding, it will be a good idea to check if temporarily disabling the firewall of your system resolves the issue. For illustration, we will go through the process for the Windows Defender Firewall.
Warning: Advance at your own risk as editing the firewall’s settings is a skillful task & if done wrong, you may expose your system/data to threats.
Set Java (TM) Platform SE to Private in the Firewall Settings
- Click Windows, type: Allow an App Through Windows Firewall, & open it.
- Now click on Change Settings & in the list of Apps, find Java (TM) Platform SE Binary. If it is not present, click on Allow Another App & steer to the installation directory of Java (usually, the Java directory of Program Files and Program Files (X86) folders) and double-click on Javaw.exe.
- Then uncheck the option of Public and checkmark the option of Private for all the Java (TM) Platform SE Binary processes.
- Now select Java (TM) Platform SE Binary & click on Details.
- Then open Network Type and checkmark Private.
- Now apply your changes & reboot your PC.
- Upon reboot, check if the IOexception issue is resolved.
Allow the Minecraft Through the Firewall
- Click Windows, type: Firewall, & open Windows Defender Firewall.
- Now make sure no Inbound and Outbound rules related to Minecraft are set to Block the Connection.
- Then select Inbound Rules & click on New Rule.
- Now select Program & click on Next.
- Then click on Browse & steer to the installation directory of Minecraft.
- Now double-click on Minecraft.exe & select Allow the Connection.
- Then click on Next & select all the three profiles (i.e., Public, Private, & Domain).
- Now name the rule & click on Finish.
- Then repeat the same for the Outbound Rule & reboot your PC.
- Upon reboot, check if the Java.io issue is resolved.
If the issue persists, check if allowing the Minecraft connections through the router’s Firewall (if any) resolves the issue (especially, if it is using some autoblocking feature). If that did not do the trick, check if the parental controls are not restricting the Minecraft access. Also, it will be a good idea to ensure that the ports are properly forwarded in the system/router firewall as required by Minecraft.
If the issue persists, check if allocating more RAM to Minecraft solves the problem. If that did not do the trick, you may contact the server’s admins to delete your player data or check for a server-side problem. If the issue did not resolve so far, you may have to perform a factory reset of your PC & if that did not do the trick, get your system (especially, hard disk and network/Wi-Fi card) checked for a hardware error.