Have you ever wanted to see the list of devices connected to your local home network? Linux provides a cool solution to list all the devices connected to your network using arp scanning. You need to follow these simple steps:(These are for Linux) 1) Make sure you have arp-scan package installed (if not use sudo apt-get install arp-scan command in terminal to install the package) 2) In order to verify type sudo arp-scan --interface=wlan0 --localnet in terminal. You will probably see the list of devices connected to your local network using wifi. This sets our base and now we can move on to write our python script to detect particular devices and see there status if its connected to wifi or not. NOTE: We need to know the mac address of the devices we want to track. Now Let's create a new python script and name it anything you like and paste this code I named mine detectDeviceOnWifi.py Now run your script using sudo python detectDeviceOnWifi.py in
Comments
Post a Comment