Can't join my server: "io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information" [duplicate]

Solution 1:

You are providing your friends with the wrong IP address. Follow these instructions to retrieve your global IP address, and ask them to connect with that.

Disclaimer: This answer comes from having absolutely no knowledge of Minecraft what so ever. From what you have led me to understand, you're issue stems from core networking issues, so this should apply to Minecraft just as it would to any other server you were trying to set up.


First, let's make sure we are on the same page.

  1. You have a Minecraft server with the IP address of 192.168....
  2. You are on the same network as this server. It is your own computer, or it is otherwise running on a computer within your house.
  3. You are able to connect to the server.
  4. Your friends are trying to connect from outside your house.
  5. Your friends are not able to connect to the server.

You are providing a local IP address

The address you provide is explicitly used to identify a local device. That means I could use it to connect to your server when I am in your house and connected to your network. As soon as I have to connect using the Internet, that address means nothing.

You need to use a global IP address

Never fear; your server already has one of these, and it is pretty easy to retrieve. All you need to do is google "what is my IP address" from the same computer. Google will tell you what it is. Copy it down. Try using that IP address to connect to your server.

Do not tell us what that address is. Make sure that the person in charge of the network gives you permission to provide this address to other people. Providing this IP address to anyone could be a serious security risk, even if you know them.

enter image description here

Solution 2:

I know that my ip4 address is: 192.168.1.105 and I put this in "server.properties" file.

Don't. Leave your server-ip to (blank). Your server will just bind to your local address and nobody externally will be able to access it. (Depending on your configuration, localhost won't work either)

I can connect to my server only by connecting with IP4 address not global IP address

The above is why. Also, check your firewall and make sure Java is allowed to be communicated from the outside.

@Gnemlock's answer regarding IP address is also a good read too.

Your computer usually has two addresses; a local (192.X.X.X or 10.X.X.X*) and a global address is usually anything other than the above in a single-layer network (means your router is connected straight to the phone line; multi-layered networks are usually only seen in corporate environments) shared between all devices on your home network.

When someone outside of your house needs to connect to use, they use the public address. When something within your home needs to talk to each other, you use the local address.

*some older modems remaps 10.0.0.X to local devices.