Finding All Hosts On the LAN From Linux / Windows Workstation by paquai13 November 20, 2015 #Linux 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 #Windows: for /L %I in (1,1,254) DO ping –w 30 -n 1 192.168.1.%I | find “Reply” Tags:bashbathostslanlinuxpingupwindows