Minecraft server port issue with open ports

minecraft-java-edition

My friend and I decided to try making our own 1.7.9 server but we ran into some problem with ports.

I followed this guide and did a bit more research and I was able to connect to my server, but my friend couldn't get his server with his despite using the same method as I did.

First, I got my IPv4 address:
ipv4

Then I set my ports:
nat1

port1

Then I allowed the port in my firewall's advanced settings:
firewall

Then I used canyouseeme.org to check if the port is open.
check

DMZ is set to my internal IPv4 address (we changed it to his when we try to get his server up)

At first mine did not work, but after reseting the modem and giving it 5 minutes or so, I was able to get on with my public ip obtained from ipchicken.com

I tried getting my friend to follow the same step but idk why it doesnt work for him.. anyone know what could have possibly gone wrong?

We are both connected to the same modem. I used port 25565 and he used 2224, a port that is not used by anything. He even turned his firewall off. canyouseeme.org stated that his port is open but when we try to connect to the server, we keep getting the connection refused message. I tried getting him to use 25565 as well (modified the NAT rule changing my internal ip to his)

Best Answer

Your problem here has nothing to do with the ports you are using. You did follow all of the correct steps involved with setting up your ports on your router/modem and your firewall.

Your problem is that you gave your friend your local IP, not your public IP.

You see, your device (in this case your computer) is connected to your router, which sets up a local connection. When multiple devices are connected to the router this is called a LAN, or Local Area Network. Each device connected to the network will have a unique IP, for example:

Device 1 will be: 192.168.1.1

Device 2 will be: 192.168.1.2

Device 3 will be: 192.168.1.3

And so on and so forth.

But this does not allow your friend to connect to your computer. Unless they are on the same network as you, their machine will have no way of finding yours. What you are looking for is your public IP.

It is very easy to find, simply go to google.com and search 'what is my ip' like so:Google.com

After your ports are all set up, have your friend connect to the IP show by google (mine is asterisked out). This should solve your problem.

EDIT: Having been told that this is not the problem, I have an edit. This problem is not caused by issues with ports or your router/modem. This problem is caused by what is called FEEDBACK, or network feedback. Network feedback happens when a signal coming from inside a routers system is directed out of thw router, and then right back into it. Since the server is local to your computer, you ought ti be able to use your local IP adress. However, your friend wont be able ro connect with your public IP adress, due to network feedback.

I have actually had this problem before, so this ought to be an easy fix. If your friend is on the same network as yourself, you should just use the LAN function on your minecraft. If not, there is no reason connecting to your public ip from another loc action shouldn't work. Ill try and find some references asap, but I hope this solves your problem.