What is the netstat command for particular port if that's connected or not? Need to know what is the exact netstat command to find out if a port is connected with any network or it's open through OS X Terminal. I want info on a particular port, such as port number 80, so the netstat command should include the port number.
Probably the best you can get is 

netstat -f inet -n | grep .port


or 

netstat -f inet | grep .servicename


Examples:

machine:~ user$ netstat -f inet -n | grep .443
tcp4       0      0  192.168.114.5.58471       192.111.0.25.443       ESTABLISHED
tcp4       0      0  192.168.114.5.57990       192.111.0.25.443       ESTABLISHED
tcp4       0      0  192.168.114.5.56813       192.111.0.25.443       ESTABLISHED

machine:~ user$ netstat -f inet | grep .https
tcp4       0      0  machine.example.co.58471 stackoverflow.co.https ESTABLISHED
tcp4       0      0  machine.example.co.57990 stackoverflow.co.https ESTABLISHED
tcp4       0      0  machine.example.co.56813 stackoverflow.co.https ESTABLISHED


Please consider that using port numbers below 256 in the first command may collide with one or more of the 4 octets of IP-numbers.