---
title: "Finding Your Raspberry Pi Address on a Mac"
description: "Use arp -a on your Mac to find the local IP address and the MAC address of a Raspberry Pi, so you can SSH into it without guessing."
canonical: https://omiid.me/notebook/16/finding-your-raspberry-pi-address-on-a-mac
author: Omid Sayfun
published: 2024-03-24
updated: 2026-08-09
---

# Finding Your Raspberry Pi Address on a Mac

I set up a Raspberry Pi Zero with Raspberry Pi Imager, connected it to Wi-Fi, and then wanted to SSH into it. I had no idea which IP address the router had handed it. The `arp` command on macOS answered that in one line.

## `arp` maps local IP addresses to MAC addresses

`arp` stands for Address Resolution Protocol. On a local network it maps IP addresses to MAC addresses. On macOS, the `arp` command prints the ARP cache: the table of local IP addresses your Mac has recently resolved to hardware MAC addresses.

That is enough to find a newly connected device like a Raspberry Pi, and to read the MAC address of the Raspberry Pi at the same time.

## Run `arp -a` once the Pi is on the network

Once the Pi had booted and connected to Wi-Fi, I ran this on my Mac:

```shell
arp -a
```

That prints a list of local IP addresses and the MAC addresses your Mac has seen. The output looks something like this:

```shell
router.local (192.168.1.1) at 62:87:f0:xx:xx:xx on en0 ifscope [ethernet]
raspberrypi-zero.local (192.168.1.23) at dc:a6:32:xx:xx:xx on en0 ifscope [ethernet]
macbook-pro.local (192.168.1.12) at 3c:52:a1:xx:xx:xx on en0 ifscope [ethernet]
```

In my case, the most useful part was that the Raspberry Pi name showed up in the output. That meant I could look for the hostname I had used during setup and immediately get the IP address I needed for SSH.

If the device name does not show up on your network, look for the new entry that appeared after you powered on the Pi. A Raspberry Pi MAC address is easy to recognize on its own, because the boards ship with prefixes registered to the Raspberry Pi Foundation: `b8:27:eb`, `dc:a6:32`, `d8:3a:dd`, and `2c:cf:67` are the common ones. An entry starting with one of those is almost certainly the Pi. If you already have a shell on the board, `ip link show` prints the same MAC address from the Pi side.

Once you have the IP address, you can SSH into the Pi with:

```shell
ssh <your-username>@<ip-address>
```

With the username and IP address from the output above, that becomes:

```shell
ssh omid@192.168.1.23
```

## `arp -a` reads a cache, not a live network scan

`arp -a` is not a network scanner. It only shows entries your Mac already has in its ARP cache, so a device usually has to have talked on the local network recently to appear there. If the Pi is missing, ping the broadcast address or the router first, then run `arp -a` again.

Still, for a quick Raspberry Pi setup, it was exactly what I needed. It let me see the IP-to-MAC mappings on my network and use that information to connect to the Pi without guessing or opening my router admin page.
