Scan local network hosts listening on a specific port
Install as global package:
npm install --global scan-port-cliUsing global package
scan-port-cli [options]Or using with npx without installation:
npx scan-port-cli [options]The following options can be used in any order:
-h, --help : show help message
-p, --port : specify port number, default is 8080
-i, --interval : specify scan interval, default is 3000 (3 seconds)Scan port with default settings:
scan-port-cliScan port 3000:
scan-port-cli --port 3000Scan every 2 seconds:
scan-port-cli --interval 2000or using unit (s for seconds, m for minutes):
scan-port-cli --interval 2sCombine all settings:
scan-port-cli --port 3000 --interval 2sThis project is licensed with BSD-2-Clause
This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:
- The freedom to run the program as you wish, for any purpose
- The freedom to study how the program works, and change it so it does your computing as you wish
- The freedom to redistribute copies so you can help others
- The freedom to distribute copies of your modified versions to others