I followed the instructions mentioned in the following blog to open a port on Mac. But i see still see that my port is closed after following all these instructions. Is there any change that needs to be done for OS X Elcapitan ? Any help is appreciated/
nmap -p 1234 localhost
This will output the status ..
Nmap scan report for localhost (127.0.0.1) Host is up (0.00013s latency). PORT STATE SERVICE 1234/tcp closed ppp
To open this port, add the following line in /etc/pf.conf sudo vim /etc/pf.conf
Open port 1234 for TCP on all interfaces
pass in proto tcp from any to any port 1234
You can limit the ip addresses .. replace any with allowed addresses ..
Save the file.
Restart the Mac and run nmap command to see if the port is open/