We can get all connected device's ip address of a local network.
We can get all connected device’s IP address of a local network.
Python
GOLANG
I followed the same algorithm for GOLANG which I used in Python but for the wide range of IP address, in that case, we need output very fast, For that scenario I used GOLANG.
Here i used goroutine and channel to call multiple Ping function at a time and store into channel and that channel pass to any other method to check or validate that which device is live and which device is closed.
This script is very useful when we have a number of device inside our organization, in that case, we can easily monitor them, or somehow we change our network, in that case, IP changed (we do not mention static IP address) so in that case go each device and check their IP address is very tough, but suppose we know our domain and IP range, in that case, we can easily monitor our all devices easily.