Use the Nmap command to scan the IP address of your local router. Identify the open ports and display their status.

Scan the IP address of a web server (e.g., 192.168.1.1) to check if port 80 is open. Use the -p option to specify the port.

Use Nmap to scan the IP address of a DNS server (e.g., 8.8.8.8) to check for open ports within a specific range, such as ports 53-80.

Scan a local subnet (e.g., 192.168.1.0/24) to identify all active devices. Use the -sn option for a ping scan without port scanning.
