finding raspberry pi ip address

7 Easy Ways to Find your Raspberry Pi IP Address

If you click our links and make a purchase, we may earn an affiliate commission. Learn more

Finding the IP address on a Raspberry Pi is often one of the first steps to take after any fresh installation, or maybe even after a reboot. Unfortunately, it’s not the easiest thing to do, especially if you are new to this or don’t have a display. Let’s see how to do this.

In the terminal, type the command “ip a”. The IP address is mentioned just after the keyword “inet” for the corresponding interface (eth0 for Ethernet and wlan0 for the Wi-Fi).

This is not the only way, and not necessarily the easiest one, so don’t worry. In this article, I’ll cover all the options you can use to quickly find your Raspberry Pi IP address: desktop interface, commands, network scan or even your Internet router.

If you’re feeling lost in all the Raspberry Pi jargon, I’ve got something to help you out. I’ve created a free glossary that explains all the essential terms and abbreviations in a way that’s easy to understand. It’s a great resource to have by your side. Get your free copy here.

Get The Current IP Address With A Monitor

If the Raspberry Pi is connected to a monitor, you can quickly get the IP address from the desktop interface or the command line. Here is how to do this.

View the IP address in the Interface

If you use Raspberry Pi OS with a desktop environment, the easiest way to get the IP address is to mouse over the network icon, in the top-right corner, near the clock.

You will get something like this :

ip address from desktop network manager

You may get two lines, one per network interface:

  • eth0: RJ45 cable (Ethernet) = 192.168.0.32 in this example
  • wlan0: Wi-Fi (not associated here)

Get the IP From the Command Line

Whether a desktop environment is installed or not on the Raspberry Pi, a quick way to get the IP address is to use the “ip a” command.

You can open a terminal and type the following:
ip a

Something not working as expected?
You can get answers from real experts in minutes.
Get help with your setup

You will get something like this:

ip a command

The paragraph starting with “eth0” corresponds to the Ethernet cable (wired), and the one starting with “wlan0” is for the Wi-Fi network interface (not on my screenshot, as it isn’t configured).

In this example, the IP address for my RJ45 interface is then 192.168.1.69.

Note: “ifconfig” is the old command, but it’s been deprecated.
You can generally use it to get a similar result:
ifconfig
ifconfig command

Tip: Command lines can be a pain to memorize. I put the essential Linux commands on a printable cheat sheet so you don't have to keep googling them. You can grab the PDF here if you want to save some time.

Find the Raspberry Pi IP Address From Another Computer

It’s possible to do a network scan or check the DHCP server interface to quickly find the Raspberry Pi IP address, without having to open a session on it (which is pretty convenient when you don’t have a display or keyboard).

Do a Network Scan From a Windows Computer

A network scan will detect all devices on the local network, and list their names and IP addresses. It’s a convenient solution to quickly find the Raspberry Pi.

If you have a computer on Windows, I recommend using a free tool, named “Advanced IP Scanner” that can scan an entire network or just a portion of it.

The interface is very intuitive, and it might be useful for other projects.
The screenshot below gives you an idea of it, and you can download it on their official website.

Recommended next step
Master Raspberry Pi in 30 Days

If you want a clearer path than jumping from tutorial to tutorial, my book gives you a step-by-step roadmap to really understand your Raspberry Pi.

Check the book here
advanced ip scanner for windows

Basically, you set a range of IPs (keep the default value if you don’t know this range), and it will try to ping each of them. If there is an answer, it will give you the host name, IP address and a few other information.

In my screenshot, you can see the Raspberry Pi on the second line, with the IP 192.168.0.32. I don’t even have to do anything on the Raspberry Pi, and if SSH or VNC is enabled, I can directly access it.

Tip: If you keep the default hostname value when you use Raspberry Pi Imager (in the advanced options, as explained here), it will be “raspberrypi”. If you only have one Raspberry Pi on the network, you can try to connect to it directly (instead of the IP address), sometimes it will save you :-).

Automatically Find the IP on Mobile

If you want an easy way to find the Raspberry Pi’s IP address by using your Android phone, simply install the RaspberryTips App.

raspberrytips android app

Our app will automatically find the IP address for you! And even let you connect to SSH with ease.

Find the Raspberry Pi IP from a Linux/Mac PC :

From a Linux computer, we can do something similar, directly with command lines.

Arp Cache

A quick way to find the Raspberry Pi IP address is to display the arp cache of your machine.

The arp cache is a list of associations IP ⇆ MAC address for your network.
(Don’t know what a MAC address is? Check this article where I explain everything).

On Linux or macOS, you can display it with the command:
$ arp -a | grep raspberry
raspberrypi.home (192.168.1.15) at b8:27:eb:1a:40:c0 [ether] on wlxc8d7193bf721

Remove the grep command if you want to show everything.

arp command scan

The command exists on Windows, but you don’t get the hostname, so it’s a bit less useful.

Nmap

Nmap is a network scanner that can be used to list all the devices connected to a specific network.

That’s exactly what we want!

You may need to install it with this command (for a Debian-based system):
sudo apt install nmap

Then you can use Nmap to scan the network and display all results :
sudo nmap -sP 192.168.1.0/24 | grep raspberry
Make sure to replace the network subnet and hostname to fit your current settings.

For example:
nmap command scan

The same thing here, the grep command is not mandatory.

Ping

I’ll mention this as a bonus because. It can help with some systems where the previous tools are not available, but it’s not as efficient.

Ping is a popular tool to test if an IP address answers (and therefore if it’s connected to the network).

There is a lesser-known option that allows you to ping your entire network, and collect responses.

You will get the list of used IP addresses and can find which one corresponds to your Raspberry Pi.
Do this command and wait:
ping -b 192.168.1.255

If you only have a few devices connected, it might help to narrow down the list of possible IP addresses, but it’s not magical.

Read the Raspberry Pi IP Address On Your Router Interface

In most cases, the DHCP server for a home network is managed by the Internet router. And most of the time, there is a web interface, where you can see a list of all the devices connected to it, with their IP address.

If you have a router like that, with access to this interface, that might be a great option to consider. No command required, nothing to install, and no need to have a display on the Raspberry Pi.

The issue is that there are many different routers, from different brands, so I can’t give you detailed instructions. You’ll have to check your router’s instructions to know exactly how to do this.

As an example, if I access mine, I get something like that on the default page:

router interface to find ip address

It’s not the best interface, but I can quickly see which devices are connected, with their IP address.

How to Set a Static IP on Raspberry Pi (LAN or WLAN)

Ok, so this time we managed to find the Raspberry Pi on the network, but it would be better to set a static IP address.

By doing this, you won’t have to do the same thing each time you start or Raspberry Pi, it will automatically get the same IP address, all the time.

You can even configure it on your router, so the Raspberry Pi always gets the same IP, even on a fresh new installation. That’s what I do, as I reinstall my Pi almost every day.

I have a full guide about this on the website, so you can refer to it if you need help to configure it on your network: 3 Easy Ways To Set A Static IP Address On Raspberry Pi.

FAQ

Why is my Raspberry Pi not getting an IP address?

If the Raspberry Pi doesn’t get an IP address assigned, it’s most likely that there is an issue with your network connection. Check the cable or Wi-Fi configuration (especially the Wi-Fi country must be set).

How to use the Raspberry Pi IP address for remote access over Internet?

The Raspberry Pi IP address won’t be reachable from outside the network. There is a difference between the local IP address and the public IP address (your router’s IP on the Internet).

To access your Raspberry Pi remotely (over the Internet), you need to set up port forwarding from your public address to the Raspberry Pi. This can generally be done on your router. More details here.

How to connect to the Raspberry Pi once I know its IP address?

You can connect to a Raspberry Pi with SSH or a remote access tool like VNC once you know its IP address.

Click on the links to learn more about these solutions.

How to find the public IP address of my Raspberry Pi?

The public address is generally the same for all devices on your local network, it’s defined on your Internet router. You can use a tool like this one to find it from your computer or Raspberry Pi.

If you want it to redirect to your Raspberry Pi local IP address (the one I talk about in this article), you’ll need to enable port forwarding or some kind of NAT on your router. I explain this in more details in this other article.

How do I access my Raspberry Pi from my router?

Routers will generally list all the devices connected to it, so you can use this interface to find the current IP address of a Raspberry Pi. But, most of the time, routers don’t have remote access features. Use a computer to remote access the Raspberry Pi.

How to make Raspberry Pi visible on network?

Raspberry Pi are visible on the network by default. If you can detect it, make sure the Wi-Fi is enabled and configured or an Ethernet cable is plugged to your network.

Plug a monitor and check the interface directly on the Raspberry Pi screen to troubleshooting this issue. It can be that the system hasn’t boot already, or is stuck somewhere during the boot process.


🛠 This tutorial doesn't work anymore? Report the issue here, so that I can update it!

Stuck on this project? Ask me or other Pi users in the RaspberryTips Community. We help each other out and you'll get answers quick. Join and fix it together.

What’s Next?

That’s it! We have listed many ways to find your Raspberry Pi on a network, and how to assign a static IP, so you will never look for it again!

You may have even learned some basic networking concepts and are now ready to go further and try new projects:

Not getting the same result?

Even when you follow every step, small differences in OS version, hardware or config can change the outcome. Instead of wasting time guessing, get help from people who have already fixed the same kind of issue.

Ask your question now →
🔒 No risk. Cancel anytime.
  • Get help on your exact issue
  • Access step-by-step videos for tricky setups
  • Browse the website without ads

Similar Posts

Leave a Reply

Community members only
Comments are reserved for RaspberryTips Community members. Join the community to ask questions, get help, and interact with other Raspberry Pi users.

Join the community  or  log in