Installing nmap on Mac OS

brew install nmap

michael01s-Mac:~ michael01$ nmap 192.168.3.3
Starting Nmap 7.70 ( https://nmap.org ) at 2018-04-08 20:14 PDT
Nmap scan report for 192.168.3.3
Host is up (0.0084s latency).
Not shown: 993 filtered ports
PORT     STATE SERVICE
135/tcp  open  msrpc
139/tcp  open  netbios-ssn
443/tcp  open  https
445/tcp  open  microsoft-ds
912/tcp  open  apex-mesh
5357/tcp open  wsdapi
8080/tcp open  http-proxy


Nmap done: 1 IP address (1 host up) scanned in 15.94 seconds
michael01s-Mac:~ michael01$ 

Check whether the specified port is enabled:

michael01s-Mac:~ michael01$ nmap -n --open -p 1008 192.168.3.3/24
Starting Nmap 7.70 ( https://nmap.org ) at 2018-04-08 20:19 PDT
Nmap scan report for 192.168.3.3
Host is up (0.0040s latency).


PORT     STATE SERVICE
1008/tcp open  ufsd


Nmap done: 256 IP addresses (3 hosts up) scanned in 3.99 seconds

Read More: