LightAtom

arp -a: See the Devices on Your Network

arp -a shows the devices your Mac has recently talked to on the local network, with their IP and hardware (MAC) addresses.

arp -a

List the ARP table: local devices your Mac knows, with IP and MAC addresses.

beginner5 minNeeds: Terminal

When to use it

Use arp -a to find a device's IP address on your network (a printer, a Raspberry Pi), to see which devices are around, or to check for duplicate IP addresses. It only lists devices your Mac has recently communicated with.

Steps

  1. Show the table

    Each line is one device your Mac has exchanged packets with recently.
    arp -a
  2. Fill the table first

    To discover more devices, ping the broadcast address of your network (for 192.168.1.0/24 it's 192.168.1.255), then run arp -a again. Not every device answers.
    ping -c 3 192.168.1.255
  3. Find a specific device

    The first six hex digits (the OUI) identify the manufacturer; search them in the IEEE's public OUI list.
  4. Remove a stale entry

    If a device changed its address, delete the old entry. macOS relearns it on the next packet.
    sudo arp -d 192.168.1.50

Output explained

router.lan (192.168.1.1) at 72:1d:18:77:9c:11 on en0 ifscope [ethernet]
iphone (192.168.1.2) at b6:47:a4:5d:51:c9 on en0 ifscope [ethernet]
? (192.168.1.6) at (incomplete) on en0 ifscope [ethernet]
  • The name comes from local name resolution (mDNS or the router's DNS); ? means none was found.
  • The IP and MAC address pair is what ARP maps.
  • (incomplete) means your Mac asked for that address and got no answer: the device is offline or left.
  • Many phones and Macs use randomized (locally administered) MAC addresses, recognisable by a second hex digit of 2, 6, A or E, like b6: and 72: above.

Options and variations

FlagMeaningExample
-aShow all entriesarp -a
-nDon't resolve names (faster)arp -an
-i IFOnly one interfacearp -a -i en0
-d HOSTDelete an entry (sudo)sudo arp -d 192.168.1.50
-d -aDelete all entries (sudo)sudo arp -d -a

Common errors

ErrorCauseFix
Device missing from the listYour Mac hasn't talked to it recentlyPing it or the broadcast address, then run arp -a again.
(incomplete) entriesNo reply to the ARP requestThe device is off or on another network; entries expire on their own.

Do it in the app

LightAtom's Map separates connections to local devices from internet ones, listing them under Local network.

Frequently asked questions

What does arp -a show?

The ARP cache: local devices your computer has recently exchanged packets with, mapping each IP address to a hardware (MAC) address.

How do I see all devices on my network from a Mac?

arp -a shows recently contacted ones. Ping the broadcast address first to fill the table, or check your router's connected-devices page, which knows every DHCP client.

Why do devices have random MAC addresses?

iPhones, Macs, Android and Windows devices use private (randomized) Wi-Fi addresses per network to prevent tracking. These are locally administered, so they don't map to a manufacturer.

LightAtom team

The people who build LightAtom, a network monitor for macOS.