A simple Python-based network scanner designed to discover active devices within an authorized local IPv4 network using ICMP ping requests.
This project helps users understand basic network discovery and learn how to identify active devices in a local area network (LAN).
- Network Scanning – Discovers devices within a specified private IPv4 network.
- IP Address Detection – Identifies IP addresses of devices responding to ping requests.
- Device Status – Displays whether a device is online.
- Network Validation – Validates the provided network address.
- Cross-Platform Support – Supports Windows and Linux ping commands.
- Scan Summary – Displays the total number of responding devices.
- Python 3
- ipaddress
- subprocess
- platform
- Python 3.10 or later.
- Windows or Linux operating system.
- Connection to an authorized local network.
-
Clone this repository:
git clone https://github.com/pradipta-web/python-network-scanner.git
-
Navigate to the project directory:
cd python-network-scanner -
Run the application:
Windows:
py main.py
Linux:
python3 main.py
- Run the Python application.
- Enter your private IPv4 network address in CIDR notation.
- Wait for the scanning process to complete.
- View the discovered active IP addresses.
192.168.1.0/24
Starting Network Scanner...
Target Network: 192.168.1.0/24
---------------------------------------------
[ONLINE] 192.168.1.1
[ONLINE] 192.168.1.5
[ONLINE] 192.168.1.10
---------------------------------------------
Scan completed!
Active Devices: 3
Note: The output above is an example. Devices that block ICMP ping requests may not be detected.
This project was created to improve practical knowledge of:
- Python programming.
- Computer networking.
- IPv4 addressing and CIDR notation.
- ICMP ping requests.
- Local network discovery.
- Network troubleshooting.
This tool is intended for educational purposes and authorized network administration only.
Only scan networks that you own or have explicit permission to examine.
Kinervaaa
GitHub: @pradipta-web
Built for learning Python programming and computer networking.