Is there a way to scan an entire network using nmap?

What I want to do is scan my network for all the devices that are currently connected to it.


Scan a network and find out which servers and devices are up and running

nmap -sP

Scan a Single Host


Scan multiple IP address or subnet


Scan by Excluding a Host

nmap --exclude

This will Exclude the Host while Scanning

Fast Nmap Scanning for a Network range

nmap -F

To See Packets send and receving using Nmap

nmap --packet-trace

Scan for a Port

nmap -p 22

scan for multiple ports

nmap -p 80,22,21,111

Sacn all Ports Using Nmap

nmap -p "*"

Hope this will Help you.

If you need to know more just run the command

man nmap
  • Thank you very much my friend this has helped me tremendously. Just to be clear is that IP address a universal network IP or what? Just curious lol. – Fofaster Nov 16 '13 at 5:19
  • No its your local Network , Network Address – Babin Lonston Nov 16 '13 at 5:33
  • 2
    Option -sP is deprecated. The new equivalent is -sn. – H2ONaCl Mar 2 '17 at 21:04
  • 2
    sudo arpscan list is probably worth looking at to if you're just wanting a list of hosts/clients in the network you're connected to. – pbhj Nov 2 '17 at 20:46

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.