How to Find the Current IP Address of a Raspberry Pi?

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 on this device. I have many solutions for you, let’s see how to do this.

Here are 3 ways to quickly find the IP address on a Raspberry Pi:

  • Open a terminal and type “ifconfig”. The IP address will be on the second line.
  • Mouse over the network icon (top right) on Raspberry Pi OS.
  • Visit your router web interface and check the connected devices.

In this tutorial, we’ll see how to find the IP of your Raspberry in different ways:
– with a screen (on a desktop or a minimal operating system).
– from another PC on the network (Linux or windows).
– from a network equipment (internet box, router, …).
Note: there is a video tutorial at the end of this article if you prefer an animated answer 🙂

We will also see how to set a static IP on the Raspberry Pi to avoid this issue in the future.

If you need help getting started on Raspberry Pi, I have an entire course to guide you through your first steps. I’ll help you use the perfect hardware, plug everything in and install your first system. You’ll also do your first project with me, just to make sure you are ready for the next level. Get all the information on this page if you are interested.

I answer your questions - Raspberry...
I answer your questions - Raspberry Pi FAQ

How To Get The Current IP Address With A Monitor

Download the Pi Glossary!
If you are lost in all these new words and abbreviations, request my free Raspberry Pi glossary here (PDF format)!

Here is how to find the Raspberry IP address if you have a screen connected to it (or if you can connect one easily).

In the command line

The fastest way to display the IP is to open a terminal and type the following command:

You will get something like this:

eth0 is the LAN (wired) interface, and wlan0 is the WLAN (wireless) network interface.

I have squared in red the IP addresses, so in my case :
– is my LAN IP.
– is my WLAN IP.

Raspberry Pi Bootcamp
Sale: 10% off today.
Take it to the next level.
I'm here to help you get started on Raspberry Pi.
Learn all the skills you need in the correct order.

Are you a bit lost in the Linux command line? Check this article first, for the most important commands to remember, and a free downloadable cheat sheet so you can have the commands at your fingertips.

In the graphical interface

If you prefer to use graphical tools, no problem, go to the taskbar, and mouse over the network icon on the right.
You will get something like this :

current ip from task bar

You will find the same information:
– wlan0 = WiFi =
– eth0 = RJ45 cable =

So if you have a screen, you normally get the IP address of your Raspberry Pi pretty quickly

How To Find The Raspberry Pi IP Address From Another Computer

Finding the IP address from another PC will be less obvious, but you can also do it.

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

From a Linux computer, there are many possibilities.
I give you three, so pick the one that adapts better and more efficiently to your environment.

Arp cache :

A quick way to find it is to display the arp cache of your machine.
The arp cache is a list of associations IP <=> mac address for your network.

On Linux or Mac you can display it by doing :
$ arp -a | grep raspberry
raspberrypi.home ( at b8:27:eb:1a:40:c0 [ether] on wlxc8d7193bf721

Remove the grep command if you want to show everything.

Nmap :

Nmap is a network scanner used to discover computers on a network.
That’s precisely what we want to do!
If needed, you have to install it with this command for a Debian-like system:
sudo apt-get install nmap

Then you can use Nmap to scan the network and display all results :
$ sudo nmap -sP | grep raspberry
Nmap scan report for raspberrypi.home (

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

Ping :

I tell you because it can help with some systems where the other tools are not available, but it’s a very slow solution.

Ping is a tool that you probably know, which allows knowing if an IP address answers (and therefore if it is connected to the network).
There is a lesser-known option that allow 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

Find the Raspberry Pi IP from Windows :

Master your Raspberry Pi in 30 days
Sale: 10% off today.
Download the eBook.
Uncover the secrets of the Raspberry Pi in a 30 days challenge.
Learn useful Linux skills and practice multiples projects.

From Windows, you can also use ping broadcast address.
But I recommend a free tool, which is called 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.
I put you a screenshot here so that you can get an idea of it, and you can download it on their official website.

advanced ip scanner

Find the Raspberry Pi IP Address On Your Router

If the other solutions did not work, or if your Raspberry Pi is on an isolated network, consider using your router to find its current IP address.

Most routers display the list of devices connected to the network, with their IP address and their mac address.
If you have access to this interface, it should help you.

Given the number of routers on the market, I can’t help you in detail.
You will have to turn yourself to the router instructions for this one.

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.
This will allow us to connect to it without doing the same thing each time, just by entering IP address that we will define now.

Some network concepts

If you lost your Raspberry Pi today, it’s probably because it was set on DHCP until now.

What is DHCP?

A DHCP is a system that automatically assigns IP addresses on a network.
At home, you generally have an internet box that takes care of that.
It will distribute IP addresses on a predefined network (for example, 192.168.1.X) and a range of IP addresses reserved for DHCP (for example, from 1.100 to 1.150).

The first thing to do before setting your Raspberry Pi in static IP is to know your network configuration.
Ideally, you should avoid choosing a static IP in the DHCP range.

By the way, your Raspberry Pi can even host a DHCP server (maybe for another day, but just to let you know).

How to define my static IP address?

In my example, I can set the IP address of the Raspberry to
The DHCP server will no longer have any impact on the Raspberry Pi once the IP address is set to static.

If you do not have this information, try choosing a new IP far from the IP addresses assigned to your other computers.

Set the Static IP Address from a Terminal

Ok, now that you know which IP to choose for your Raspberry Pi, let’s see how to do it using the command line for now.

Ethernet connection :

  1. Edit the configuration file :
    nano /etc/dhcpcd.conf
  2. Add this line (or uncomment them) :
    interface eth0
    static ip_address=
    static routers=
    static domain_name_servers=

    Don’t forget to replace this values with your network configuration.

  3. Reboot your Raspberry Pi :
    sudo reboot
Master Python on Raspberry Pi
Sale: 10% off today.
Get the eBook.
Do more with your Raspberry Pi, learn the useful concepts and take the shortcuts.
You miss half of the fun of using a Raspberry Pi if you don’t know anything about Python.

After the reboot, you can check your new static IP with ipconfig.

Wireless connection :

It’s almost the same thing if you are using your Wi-Fi connection:

  1. Edit the configuration file :
    nano /etc/dhcpcd.conf
  2. Add this line (or uncomment them) :
    interface wlan0
    static ip_address=
    static routers=
    static domain_name_servers=

    Don’t forget to replace this values with your network configuration.
  3. Reboot your Raspberry Pi :
    sudo reboot

Via the desktop GUI

As usual, if you prefer the GUI, here’s how to do the same thing (and it’s rather simple for once):

  1. Right-click on the Network icon in the taskbar.
  2. Select “Wireless and Wired Network Settings”.
  3. And you will get a window in which you have to fill your network settings (eth0 = Wired, wlan0 = Wi-Fi).

All you have to do is restart your Raspberry Pi to apply the settings.

Via your router (again) :

Again, on most routers and internet boxes it is possible to configure the DHCP server to assign an IP address to a host (mac address).
This configuration allows you to leave your Raspberry Pi in DHCP, but make sure it always gets the same IP.

This can be a good solution, especially if you are not always using the Raspberry Pi on the same network.



Reminder: Remember that all my Patreon supporters get access to this website without ads, early access to my videos and much more. You can become part of this community for as little as $3 per month & get all the benefits immediately.

Conclusion :

Get My Cheat Sheet!
Grab your free PDF file with all the commands you need to know on Raspberry Pi!

And that’s it!
You have learned how 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:

Raspberry Pi Resources

Not sure where to start?
Understand everything about the Raspberry Pi, stop searching for help all the time, and finally enjoy completing your projects.
Watch the Raspberry Pi Bootcamp course now.

Master your Raspberry Pi in 30 days
Don’t want the basic stuff only? If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiple projects with step-by-step guides.
Download the e-book.

VIP Community
If you just want to hang out with me and show your support, you can also join the Patreon community. I share behind-the-scenes content there and give you early access to my content. You’ll also get a shoutout when you join.
More details here.

Need help building something with Python?
Create, understand and improve any Python script for your Raspberry Pi.
Learn the essentials, step-by-step, without losing time understanding useless concepts.
Get the e-book now.

You can also find all my recommendations for tools and hardware on this page.

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

0 0 votes
Article Rating

Patrick Fromaget

I'm the lead author and owner of My goal is to help you with your Raspberry Pi problems using detailed guides and tutorials. In real life, I'm a Linux system administrator with a web developer experience.

Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
Geoffrey Callaghan
3 years ago

if you have a dynamic ip address on your pi and you need to remote access to it
you can use the ddns

Recent Posts

Master your Raspberry Pi - 10% off