Contents
Minecraft bug fix : io.netty.channel.abstractchannel$annotatedconnectexception connection refused
The “io.netty.channel.abstractchannel$annotatedconnectexception connection refused” error occurs in Minecraft when trying to connect to a server. This error is not limited to a single server and persists on all servers.
What is the cause of the login rejection error in Minecraft?
After receiving many reports from various users, we researched the issue and found a number of solutions that solved the problem for most users. In addition, we investigated the reasons why the error was caused and listed them below:
IP Problem: In some cases, the problem is caused by an incorrect IP address or port when trying to connect to a server. The correct IP address and port are used to send your connection to the server and the connection is established once the server approves it. Unless you are using a static IP address, which is quite rare, the IP address assigned to you by your ISP changes from time to time and multiple users may be assigned the same IP address. Therefore, the IP address should change from time to time.
Firewall: It is also possible that the Windows firewall you are using is blocking your connection to the server. Java files and the game directory must be added to the Windows firewall block list in order for the game to connect to the server properly.
Outdated Java: Minecraft requires the Java software to be updated to the latest version in order to function properly. If Java is outdated on your device and the launcher has been updated to the latest version, this can cause conflicts with certain elements of the game and prevent it from connecting to the server properly.
Incompatible software: There is a list of software that is not compatible with Minecraft and will cause problems if installed on the computer you are trying to connect to the server. Minecraft has an official software catalog that is not compatible with the game and causes conflicts.
Now that you have a basic understanding of the problem, let’s move on to the solutions. It is recommended that you try these solutions in the exact order provided to ensure that no conflicts occur.
Solution 1: Restart the Internet
Each time the Internet router is rebooted, the IP address provided by the ISP changes unless a static IP address is used. Therefore, in this step, we will reset the Internet configuration and DNS cache by shutting down the Internet router. To do this, you need to turn off the Internet power to the router. Wait 6 minutes and turn the router back on.
Solution 2: Add the exception in the firewall
It is possible that the Windows Firewall you are using blocks your connection to the server. Therefore, in this step, we are going to add an exception in the Firewall for some executables in the Minecraft folder that need Internet access. To do this you must follow the steps below:
1- Click on the Settings icon in the Start menu.
2- In the settings, click on “Updates and Security”.
3- In the left pane, select “Windows Security”, then “Firewall and Network Protection”.
4- Scroll down and select “Allow application through firewall”.
5- Click “Change Settings” and select “Yes” in the warning message.
6- Select “Allow another application” from the options and click “Browse”.
7- Navigate to the game’s installation directory and select the game and launcher to run.
8- Now repeat the above process again, this time navigating to the directory where the Minecraft servers are installed.
9- Open the “Maxwell” folder and then the “MinecraftServer” folder.
10- Now activate the two Java executables in the folder in the same way.
11- Now repeat the process and instead of clicking on “Activate another application” after selecting the “Edit” option, simply scroll through the list of available applications and activate all the “Java Platform SE Binary” options through the “Private” and “Public” networks.
Applications to be activated via the firewall:
12-Open the Minecraft launcher, try to connect to the server and check to see if the problem persists.
Solution 3: Add an IP address and port
If the IP address you are using is not static, it will change every two days or every time the internet connection is reset. So, in this step, we will check the correct IP address and port for the game and add it to the Minecraft launcher. To do this:
1- Click on the search bar of the Windows toolbar and type “Command Prompt“.
2- Right-click the icon and select “Run as administrator”; right-click the command prompt icon and select “Run as administrator”.
3- Type in “ipconfig” and write down the “IPV4 Address“. Type ipconfig in the command line.
4- Also go to the folder “Minecraft>Maxwell Servers (some random numbers)> MinecraftServer” and open the text document “Server Properties”. Open the “Server Properties” text document and highlight the server port.
5- Notice the “Server port” displayed there. In our case it was “25565” in most cases it would be the same, but in some cases it is not.
6-Now open Minecraft and open the “Play Multiplayer” option.
7- Select the server by clicking on it and select “Edit” from the following options. Click on the server and select “Edit”.
8- The server name can be anything, but the “address” must be the IPV4 address we wrote and the port number, for example ” XXX.XXX.XXX.X.X.X.X.X.X.X.X.X:25565 “, where “25565 ” is the port number, which can be changed. Edit the server address and click Done.
9- Click on “Done”, click on “Refresh” and check to see if the problem persists.