A command-line tool that scans your local network for connected devices, checks open ports, and continuously monitors when devices connect or disconnect — with full history saved to a local database.
- Auto-detects your current subnet (works on any Wi-Fi network)
- Multi-threaded ping sweep (scans 254 addresses in seconds)
- Hostname resolution (DNS + NetBIOS fallback)
- Common port scanning (SSH, HTTP, HTTPS, RDP, SMB, etc.)
- Continuous monitoring mode — scans every 5 minutes automatically
- Persistent connect/disconnect history via SQLite
- Python 3 (standard library only — no external dependencies)
- SQLite for storage
powershell git clone <your-repo-url> cd network-scanner python -m venv venv venv\Scripts\activate python scanner.py
Run the script and leave it running — it scans every 5 minutes and logs every device connect/disconnect event with a timestamp.
Press Ctrl+C to stop monitoring.
- Phones and IoT devices often don't respond to hostname lookups (NetBIOS is Windows-specific), so some devices show as "Unknown"
- Detection precision is limited by the scan interval — a device that disconnects and reconnects between two scans won't be caught