


In my case, it's getting the information directly from the printer. In my case, I have two printers on my network - my HP CP2025dn and a Lexmark E260 with DNS/IPs as /192.168.1.25 and lex.home/192.168.1.55 respectively.Īs for the "Location" field, this is something that is set up by the user or Sys Admin. You will get output similar to what's shown below (IPs have been changed for security). Let it run for about 30 seconds or so.Then hit Ctrl C to stop it.Īlternatively, you can specify the time by adding it to the ping command: ping -t 30 192.168.1.255 Ping the broadcast address ping 192.168.1.255 You will get output similar to the following: 192.168.1.255 Use en0 for wired ethernet and en1 if you are on wireless. Get your broadcast address: ifconfig en0 | grep broadcast | awk '' A sure fire way to find the IP address of your printer (any device for that matter) is to ping the broadcast address.
