Android Wi-Fi Network Scanner App
Simple Network Sniffer is a lightweight Android app designed to scan the local Wi-Fi subnet for active and reachable devices. It demonstrates basic network discovery using Java and the Android SDK, and was originally built for educational purposes.
- Retrieves the device's current Wi-Fi IP address and subnet
- Iterates through the IP range (e.g.,
192.168.1.1to192.168.1.254) - Attempts to connect to each IP using
InetAddress.isReachable - Logs reachable hosts and their canonical names to Logcat
- Understand how subnet scanning works in Android apps
- Demonstrate
AsyncTaskand background threading - Show how to use
WifiManagerandConnectivityManagerto access network info
- Java (Android)
- Android SDK (pre-AndroidX)
AsyncTaskfor background scanningWifiManager,ConnectivityManager,InetAddressfor network operations
- Android Studio (3.x+)
- Android SDK (API 23–28 recommended)
- Java 8
- Clone the repo:
git clone https://github.com/didiergarcia/simple-network-sniffer.git cd simple-network-sniffer - Open in Android Studio.
- Build and run on a real device (not emulator) connected to Wi-Fi.
- Launch the app
- Tap the "Sniff" button
- Watch Logcat for output showing reachable devices on your subnet
Host: router.local [router.local] (192.168.1.1) is reachable!
Host: macbook-pro [macbook-pro] (192.168.1.45) is reachable!
- Use Kotlin and AndroidX libraries
- Add UI to display scan results
- Add hostname resolution timeout settings
- Implement concurrent pinging for faster results
MIT © Didier Garcia
Built for educational and diagnostic purposes.