TechNeate.com iPhoneate.com QueComico.com MiamiGlobalRadio.com

How to view the IP addresses of LAN devices on Mac OS

by menorah / November 5, 2016 4:27 PM EDT

If you need to see the IP addresses of other devices on the same LAN, such as a Mac, the command-line tool "arp" works quite well. By typing `arp` before any command in Terminal, you can find other IP devices and their MAC addresses.

How to find the IP addresses of local devices using ARP

To begin, open the Terminal application from /Applications/Utilities. ARP is a tool that uses the Address Resolution Protocol (ARP) to display and control network address resolution functions. For our purposes here, the simplest use of ARP is to append a hyphen (-), like this:

arp - a

terminal

This will return a list of devices found on the local network, including other Macs, PCs, routers, iPhones, and iPads, showing both their LAN IP addresses and their corresponding individual MAC addresses. In other words, you would see something like this:

 % arp - a ? (192.168.0.1) at 0:0:ca:1:2:3 at ifscope en0 [ethernet] ? (192.168.0.2) a 61:b3:3d:22:1 c: 42 a ifscope en0 [ethernet] ? (192.168.0.11) at b3:09:15:5b:d6:5f at ifscope en0 [ethernet] ? (192.168.0.255) at ff:ff:ff:ff:ff:ff at ifscope en0 [ethernet]

If the output doesn't appear updated, or if it's missing an IP address that you think should be there, ping the broadcast IP address (usually the last result of arp – ending with ".255"), then run arp – again:

Terminal% ping 192.168.0.255 PING 192.168.0.255 (192.168.0.255): 56 data bytes 64 bytes from 192.168.0.6: icmp_seq=0 ttl=64 time=0.079 ms 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=1.922 ms --- 192.168.0.255 ping statistics --- 2 packets transmitted, 2 packets received, +6 duplicates, 0.0% packet loss round-trip min/avg/max/stddev = 0.079/39.404/303.510/75.738 ms Terminal% arp -to  ? (192.168.0.1) at 0:0:ca:1:2:3 at ifscope en0 [ethernet] ? (192.168.0.2) a 61:b3:3d:22:1 c: 42 a ifscope en0 [ethernet]
? (192.168.0.10) at 22:12:bb:a0:3d:fd on en0 ifscope [ethernet]
 ? (192.168.0.11) at b3:09:15:5b:d6:5f in ifscope en0 [ethernet] ? (192.168.0.255) at ff:ff:ff:ff:ff:ff in ifscope en0 [ethernet] In this example, 192.168.0.10 is a new IP address compared to the previous results, as the device has just joined the network.

You can ignore the protocol suggestion at the end of the arp results; in this example, even though the devices are shown as "ethernet", they are actually all on a Wi-Fi wireless network.