Check Ip Raspberry Pi

Posted : admin On 1/25/2022

Dec 31, 2019 One of the easiest ways of finding the IP address of your Raspberry Pi is to check your router’s device list. Typically your router will sit on Browse to this address in your favorite web browser. If the Raspberry Pi is reachable, ping will show its IP address: PING raspberrypi.local ( 56 data bytes 64 bytes from icmpseq=0 ttl=255 time=2.618 ms If you change the system hostname of the Raspberry Pi (e.g., by editing /etc/hostname ), Avahi will also change the.local mDNS address.

Any device connected to a Local Area Network is assigned an IP address.

In order to connect to your Raspberry Pi from another machine using SSH or VNC, you need to know the Pi's IP address. This is easy if you have a display connected, and there are a number of methods for finding it remotely from another machine on the network.

Using the Pi with a display

If you boot to the command line instead of the desktop, your IP address should be shown in the last few messages before the login prompt.

Using the terminal (boot to the command line or open a Terminal window from the desktop), simply type hostname -I which will reveal your Pi's IP address.

Using the Pi headless (without a display)

It is possible to find the IP address of your Pi without connecting to a screen using one of the following methods:

Router devices list

In a web browser navigate to your router's IP address e.g., which is usually printed on a label on your router; this will take you to a control panel. Then log in using your credentials, which is usually also printed on the router or sent to you in the accompanying paperwork. Browse to the list of connected devices or similar (all routers are different), and you should see some devices you recognise. Some devices are detected as PCs, tablets, phones, printers, etc. so you should recognise some and rule them out to figure out which is your Raspberry Pi. Also note the connection type; if your Pi is connected with a wire there should be fewer devices to choose from.

Resolving raspberrypi.local with mDNS

On Raspberry Pi OS, multicast DNS is supported out-of-the-box by the Avahi service.

If your device supports mDNS, you can reach your Raspberry Pi by using its hostname and the .local suffix.The default hostname on a fresh Raspberry Pi OS install is raspberrypi, so by default any Raspberry Pi running Raspberry Pi OS responds to:

If the Raspberry Pi is reachable, ping will show its IP address:

If you change the system hostname of the Raspberry Pi (e.g., by editing /etc/hostname), Avahi will also change the .local mDNS address.

If you don't remember the hostname of the Raspberry Pi, but have a system with Avahi installed, you can browse all the hosts and services on the LAN with the avahi-browse command.

nmap command

The nmap command (Network Mapper) is a free and open-source tool for network discovery, available for Linux, macOS, and Windows.

  • To install on Linux, install the nmap package e.g. apt install nmap.

  • To install on macOS or Windows, see the download page.

To use nmap to scan the devices on your network, you need to know the subnet you are connected to. First find your own IP address, in other words the one of the computer you're using to find your Pi's IP address:

  • On Linux, type hostname -I into a terminal window
  • On macOS, go to System Preferences then Network and select your active network connection to view the IP address
  • On Windows, go to the Control Panel, then under Network and Sharing Center, click View network connections, select your active network connection and click View status of this connection to view the IP address

Now you have the IP address of your computer, you will scan the whole subnet for other devices. For example, if your IP address is, other devices will be at addresses like,,, etc. The notation of this subnet range is (this covers to

Now use the nmap command with the -sn flag (ping scan) on the whole subnet range. This may take a few seconds:

Ping scan just pings all the IP addresses to see if they respond. For each device that responds to the ping, the output shows the hostname and IP address like so:

Here you can see a device with hostname raspberrypi has IP address Note, to see the hostnames, you must run nmap as root by prepending sudo to the command.

Getting the IP address of a Pi using your smartphone

The Fing app is a free network scanner for smartphones. It is available for Android and iOS.

Your phone and your Raspberry Pi have to be on the same network, so connect your phone to the correct wireless network.

When you open the Fing app, touch the refresh button in the upper right-hand corner of the screen. After a few seconds you will get a list with all the devices connected to your network. Scroll down to the entry with the manufacturer 'Raspberry Pi'. You will see the IP address in the bottom left-hand corner, and the MAC address in the bottom right-hand corner of the entry.

More tools

Also see lsleases

To connect to a Raspberry Pi using SSH or VNC, you need to know the Pi’s IP address.

If you use the Raspberry Pi with a monitor, you can check the Pi’s IP from the command line (terminal) by executing the hostname -I command.

Without a monitor and keyboard (headless) you can find the Raspberry Pi’s IP if you connect it to LAN (Local Area Network).

In this note i will show how to find the Raspberry Pi’s IP on network.


MAC Address Lookup: MAC addresses of the all devices of Raspberry Pi Foundation start with B8:27:EB:xx:xx:xx or DC:A6:32:xx:xx:xx.

Find Raspberry Pi’s IP on Network

Connect the Raspberry Pi to your local network and use one of the following commands, depending on your operating system, to find the Pi’s IP address.

Windows command prompt:

MacOS or Linux command line:

Alternatively, you can find the Raspberry Pi’s IP using nmap command, but the solution with arp is much faster and does’t require installation of additional software:

Subnet: Replace 192.168.1 with the subnet for your LAN if it’s different.

Ping all IP addresses on LAN

If you have connected a Raspberry Pi to the network

Raspberry Pi Projects

recently, the ARP table may not contain the Raspberry Pi’s IP and MAC addresses, as to be recorded Raspberry Pi has to send at least one packet to your computer.

Check Raspberry Pi Os Version

To force this we can simply ping all IP addresses on LAN.

Raspberry Pi Downloads

Windows command prompt:

Raspberry Pi Software

MacOS or Linux command line:

As only the computer receives a response from Raspberry Pi, it records IP and MAC addresses in the ARP table and you can run the arp commands above to find them out.