16

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.

27

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

nmap -sP 192.168.1.0/24

Scan a Single Host

nmap 192.168.1.2

Scan multiple IP address or subnet

nmap 192.168.1.1 192.168.1.2 192.168.1.3

Scan by Excluding a Host

nmap 192.168.1.0/24 --exclude 192.168.1.10

This will Exclude the Host while Scanning

Fast Nmap Scanning for a Network range

nmap -F 192.168.1.10/24

To See Packets send and receving using Nmap

nmap --packet-trace 192.168.1.10

Scan for a Port

nmap -p 22 192.168.1.10

scan for multiple ports

nmap -p 80,22,21,111

Sacn all Ports Using Nmap

nmap -p "*" 192.168.1.10

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 192.168.1.0 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.