Skip to main content

Scan networks for alive hosts

Project description



Scan networks for alive hosts, uses CIDR notation.

Simple example:

$ nwscan
Scanning 254 hosts... is alive is alive is alive is alive is alive

Finished: 254 hosts scanned
Alive hosts: 5


  • Works on Python 2 and Python 3
  • Tested on Linux and Windows (Cygwin)


Install using pip:

pip install nwscan


Usage: nwscan network [options]

scan network for alive hosts, uses CIDR notation

--version       show program's version number and exit
-h, --help      show this help message and exit
-r, --reverse   print not responding hosts rather than alive
-w WORKERS      number of workers threads to use (default: 8)
-t TIMEOUT      timeout of each ping request in seconds (default: 1)
-n COUNT        number of ping requests to send (default: 1)
-i INPUT_FILE   scan networks from input file (one network per line)
-o OUTPUT_FILE  save sorted ips output to file


Scan all 254 usable IPs of network ‘192.168.0.*’:

$ nwscan

Scan networks from ‘networks.txt’ file using 16 workers:

$ nwscan -i networks.txt -w 16

Scan not responding hosts and save ips to file ‘ips.txt’:

$ nwscan -r -o ips.txt

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nwscan, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size nwscan-0.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page