Find all active IP Address in LAN

Run following script in terminal
-------------------------------

for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done


Note : 192.168.1.* is the local IP range for modem, It can be different for your machine.

1 comment: