How do i use nmap to scan specific ports?

  • Man page for nmap

    Quote from the nmap man page:

    While Nmap is commonly used for security audits, many systems and network administrators find it useful for routine tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime.

    Also see: How do i scan a port range with nmap?

    To scan specific ports. Here the ports are not open.

    $ nmap -p80,443 localhost
    Starting Nmap 7.70 ( ) at 2017-03-12 09:13 BST
    Nmap scan report for localhost (
    Host is up (0.00019s latency).
    Other addresses for localhost (not scanned): ::1
    80/tcp  closed http
    443/tcp closed https
    Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds

Log in to reply

© Lightnetics 2019