LanScan
LanScan is a Python 3 module that helps to scan a given local network. It can list all devices and their open ports. LanScan also helps to get the information about network interfaces and networks.
Getting ready
We can install lanscan
using pip
:
pip3 install lanscan
How to do it...
Here are some use cases for LanScan:
- LanScan has some options that we can use for scanning the LAN. To get the details about the available interfaces in the system, we can use the
interfaces
option:
sudo lanscan interfaces
This will print the available interfaces, as follows:

- We can get the list of connected networks by using the network command:
sudo lanscan networks

- We can start a local network scan from the terminal window. It requires admin privileges:
sudo lanscan scan

Here it will list the IP addresses in the LAN network and the open ports in each system