Check Open Port Command nmap can be used to scan an IP for open ports. The syntax for the same is given below - nmap -Pn {IP_ADDRESS} Replace IP_ADDRESS with the IP to be scanned.