
Don't know your network's ip range or also need the mac addresses and have admin rights? You might find this information in your router.įor ip in $(seq 1 254) do ping -c 1 192.168.1.$ip>/dev/null & echo "192.168.1.$ip UP" || : doneĢ. Change this according to your network settings. Note: In this example the command would scan all IP addresses in a network that start with 192.168.1._ (the ip range). Open up a terminal window, paste the command underneath inside it and hit enter. Just need the IP address and don't have admin rights? looking for the browser based control surface of a printer or a nas, this tricks can speed up things if you need an ip address and/or mac address.ġ. Sometimes you need the ip address of a device, you don't access very often via its ip address.
