How to find the Raspberry Pi IP address?
One question I receive quite often is: how to find the Raspberry Pi IP address on the local network? It's useful to know the IP address indeed to be able to SSH the Raspberry Pi.
First, you need to know the router's address. In a terminal / command prompt, do
ifconfigon Linux or
ipconfigon Windows, and you will find something like:
Default Gateway : 192.168.1.1
Now let's use the tool
nmap(available both on Linux with
apt installand on Windows here). Replace the last number by
This will allow
nmapto scan the network for machines in the range 192.168.1.0 to 192.168.1.254.
After a few seconds, it will display if the Raspberry Pi has been found, along with its IP address.
In many Raspberry Pi distributions (such as Raspbian / RaspiOS), you need to have a file
/boot/ssh (in the
boot partition) to be able to SSH the RPi!