Can't open a port on MacOS Monterey

I added netcat application to the firewall and set it up to accept all incoming traffic as the screen shot below

But when I execute `nc -l 12345` I can't communicate to it from other computer and when I run `nmap -p 12345 ` it shows it is closed.

I tried to edit file /etc/pf.conf but it didn't work as well.

I followed this example


Could you please help me find a way to open a port on my macOS Monterey 12.5.1


Thanks

MacBook Air 13″, macOS 12.5

Posted on Sep 9, 2022 3:53 PM

Reply

Similar questions

6 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't open a port on MacOS Monterey

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.