Home Interests Raspberry Pi

How to Find Your Raspberry Pi’s IP Address

howchoo   (436)
September 12, 2023
6 minutes


You'll Need 1

What you'll need
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
Posted in these interests:
macos • 18 guides
pi • 91 guides

This short guide shows you various ways to find the IP address of your Raspberry Pi.

1 – Connect your Raspberry Pi to the network

Using an ethernet cable or WiFi, connect your Raspberry Pi to your local network. Make sure the device is powered on.

2 – Use `ping` to find your Raspberry Pi’s IP

Open a shell on Unix systems, or open the Command Prompt on Windows and run the following command:

ping raspi

This should ping your Raspberry Pi and return its IP address. If you see an error similar to cannot resolve raspi: Unknown host, try running the following instead:

ping raspberrypi

If you’re running RetroPie, you can try the following hostname:

ping retropie

If you’re having problems with this, or if you have multiple Raspberry Pi’s on the same network move on to the next step.

3 – Use `nmap` to find your Raspberry Pi’s IP

We can use nmap to scan our local network to find all devices that are connected. To do this we’ll have to find the IP address of our local computer.


On a Mac, open the Network Utility (cmd + space, then search for Network Utility).


On Windows, open the Network and Sharing Center (Control Panel > Network and Sharing Center > View network connections).


And on linux, type hostname -I in a shell.

You’re IP address will likely be something like: So other devices on the same network are going to have addresses that share the first three octets: 192.168.1. The notation to describe the entire range of IP addresses between and is

Once we determine the subnet range, we’ll use it with the nmap command:

nmap -sn

If you’re running on a unix system, you might be required to run this command using sudo:

sudo nmap -sn

You’ll then see a list of devices connected to the network:

Nmap scan report for Chromecast.attlocal.net (
Host is up (0.042s latency).
MAC Address: 54:60:09:06:76:0A (Google)
Nmap scan report for unknownc24b2b235d18.attlocal.net (
Host is up (0.038s latency).
MAC Address: C2:4B:2B:23:5D:18 (Unknown)
Nmap scan report for docker1.attlocal.net (
Host is up (0.51s latency).
MAC Address: B8:27:EB:79:49:F2 (Raspberry Pi Foundation)
Nmap scan report for raspberrypi.attlocal.net (
Host is up (0.51s latency).
MAC Address: B8:27:EB:95:6D:7A (Raspberry Pi Foundation)

You’ll notice here that I have a few devices, but after a quick scan you’ll notice a few Raspberry Pi’s connected to the network. From here you can discover the IP address for each Pi.


HeaterMeter: Control your Grill Using a Raspberry Pi!

Fire up the summer with a new Pi project.
howchoo   (436)
November 28, 2023

With summer right around the corner, it’s time to fire up the grill! But who will watch the grill while you’re beating the heat? This year, kick things up a notch with your own Raspberry Pi-powered HeaterMeter. Don’t just throw a BBQ, be a part of it. HeaterMeter lets you keep a close eye on

Continue Reading


 436 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.