I'm new in ubuntu & networking.
I opened port: 9876 ofr tcp and udp. I Created a java udp client and server. The server is listening to port 9876 and I connected to my server with my external ip adress. After I opened the port menually in my home router (see image), my udp client-server is working great.
When I check if port 9876 is open in my machine from this site: https://www.yougetsignal.com/tools/open-ports/ , it say it's closed. Why? (even when I'm running the udp server which listen to this port). How can I open port 9876 in my machine to everyone in the internet?
Commands I run in my local machine:
stavalfi@laptop:~/IdeaProjects/torrentx$ netstat -tulnp | grep 9876 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) stavalfi@laptop:~/IdeaProjects/torrentx(stav)$ sudo ufw status verbose Status: inactive stavalfi@laptop:~/IdeaProjects/torrentx(stav)$ sudo ufw status Status: inactive
If I understood currectrly, My firewall in my machine is off and port 9876 is not open.