Follow these steps to display open, closed and blocked ports using nmap.
In this example, we have a network with about 15 hosts. We can highlight an IP address to view the state of the ports on a particular host.
The -p (ports) option can be appended to the command to only search for a certain port in question.
nmap -p 80,443 -O sS 192.168.0.0/24