You are not logged in.

#1 2022-07-09 13:54:53

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Getting mixed signals when opening a port.

Hello, i recently tried to open a Minecraft server, but i found out that my 25565 port isn't open. Regardless of all my efforts, it simply isn't opening. I used iptables and ufw(gufw) to try and open the port, and while it did locally, i could not connect to the server whenever i tried to use my public ip. The part that confuses me is nmap saying the port is open, but https://www.yougetsignal.com/tools/open-ports/ saying it isn't.
In the terminal, when i use

sudo ufw status verbose

and/or

nmap localhost -p 25565

, it displays that the state of the port is open/allowing data in.

Outputs: https://paste.uguu.se/?22899d1681657909 … fEXDwAsvq4
Screenshot of closed port on browser:  https://jet.pics/a2d1a586e96e.png

Last edited by mrowkiuq (2022-07-09 13:58:48)

Offline

#2 2022-07-09 15:24:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Getting mixed signals when opening a port.

Nmap from the local host only confirms that the port on the local host is open - it says nothing about if it's accessible to the wider internet which your other tests confirm it isn't.  So it is blocked between your local system and the wider internet, most likely at your router.  If this is an ISP-provided router this is no surprise at all.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-07-09 15:29:04

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Getting mixed signals when opening a port.

Trilby wrote:

Nmap from the local host only confirms that the port on the local host is open - it says nothing about if it's accessible to the wider internet which your other tests confirm it isn't.  So it is blocked between your local system and the wider internet, most likely at your router.  If this is an ISP-provided router this is no surprise at all.

Hm, but how would i be able to try to fix this?
Here is my port-forwarding settings: https://jet.pics/9a3dcf4d273e.png

Offline

#4 2022-07-09 15:37:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Getting mixed signals when opening a port.

That depends on your router, it's software, and who's managing it.  Is this an ISP provided router, or your own?  That image of a small segment of some screen shot shows a listing of a forwarded port that should be sufficient if all else is working and assuming that the local IP address there actually is for your local machine (do you use a static local IP?).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2022-07-09 16:00:19

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Getting mixed signals when opening a port.

Trilby wrote:

That depends on your router, it's software, and who's managing it.  Is this an ISP provided router, or your own?  That image of a small segment of some screen shot shows a listing of a forwarded port that should be sufficient if all else is working and assuming that the local IP address there actually is for your local machine (do you use a static local IP?).

I am unsure if this router is ISP provided, and i use a DHCP configuration.

Offline

#6 2022-07-09 16:10:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Getting mixed signals when opening a port.

mrowkiuq wrote:

I am unsure if this router is ISP provided, and i use a DHCP configuration.

How are you unsure?  Is this in your home, at work, at a university?  But this is really getting silly.  I'm not going to play 20 questions.  You need to describe your set up.

Clearly you don't control the router because if you did you wouldn't be "unsure" about this ... but yet you appear to be able to log in to some unspecified control panel for it to configure port forwarding.  How do you log into that control panel?  What is that control panel?  Who gave you access to it?  (Wait, here I go playing 20 questions again.)

In any case if you just use DHCP, then your own computer's local IP address will periodically change*, and that port forwarding configuration would no longer be correct.

* unless you have also configured the router's dhcp implementation to assign pre-determined / static IPs to clients based on their hardware mac address.  But if you had done so, you would know it, and almost certainly would have mentioned it.

Last edited by Trilby (2022-07-09 17:29:06)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2022-07-09 16:51:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,569

Re: Getting mixed signals when opening a port.

* nmap the host from within the LAN
* nmap your WAN IP
* check "ip a" for your actual LAN IP

Ftr, I know nothing about virtual LEGO, but there're two server implementations.
The wiki says the bedrock server operates on UDP 19132, 19133, 43351 & 51885 - https://wiki.archlinux.org/title/Minecr … figuration
Then there's https://wiki.archlinux.org/title/Minecr … ver_Worlds for the java server, which mentions port 25565 - but here it's for TCP *and* UDP, too

Online

#8 2022-07-09 17:55:22

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: Getting mixed signals when opening a port.

Trilby wrote:
mrowkiuq wrote:

I am unsure if this router is ISP provided, and i use a DHCP configuration.

How are you unsure?  Is this in your home, at work, at a university?  But this is really getting silly.  I'm not going to play 20 questions.  You need to describe your set up.

Clearly you don't control the router because if you did you wouldn't be "unsure" about this ... but yet you appear to be able to log in to some unspecified control panel for it to configure port forwarding.  How do you log into that control panel?  What is that control panel?  Who gave you access to it?  (Wait, here I go playing 20 questions again.)

In any case if you just use DHCP, then your own computer's local IP address will periodically change, and that port forwarding configuration would no longer be correct.


I am under 18 and i live in my parent's house. They got this router before i was into tech stuff & linux so i wouldn't know.
I log into the control panel with the local IP 192.168.1.1, Not sure what you mean by asking what control panel it is, although my router model is a Huawei B593s-22. And as for who gave me access to it, i live here.
Please let me know what you mean by "You need to describe your setup."

Last edited by mrowkiuq (2022-07-09 17:56:28)

Offline

#9 2022-07-09 20:08:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,569

Re: Getting mixed signals when opening a port.

192.168.1.1 is gonna be the IP of the router.

seth wrote:

check "ip a" for your actual LAN IP

Also see the other checks to run in my comment and notably that you'll have to most likely forward UDP as well and that the actual minecraft implementation server apparently matters.

https://forum.huawei.com/enterprise/en/ … 279182.jpg suggests that the router has firewall settings next to NAT and that it by default drops all (they likely mean unrelated, "cold") inbound traffic.

Online

#10 2022-07-09 21:37:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: Getting mixed signals when opening a port.

mrowkiuq wrote:

I log into the control panel with the local IP 192.168.1.1

And you have log in credentials ... presumably from your parents, who in turn either set up the router, or more likely just got it from the ISP.

mrowkiuq wrote:

Not sure what you mean by asking what control panel it is

Whatever it was that you showed a screenshot of where you allegedly set up port forwarding, that's the router web-based control panel.  Knowing the router model helps - that's the kind of information I was looking for (and this allowed seth to provide a more specific answer above).

Last edited by Trilby (2022-07-09 21:38:05)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB