How to find the Raspberry Pi IP address?
Thank you to Code Signing Store for providing a DigiCert Code Signing Certificate and supporting open source software!
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.
Quick tip:
-
First, you need to know the router's address. In a terminal / command prompt, do
ifconfig
on Linux oripconfig
on Windows, and you will find something like:Default Gateway : 192.168.1.1
-
Now let's use the tool
nmap
(available both on Linux withapt install
and on Windows here). Replace the last number by0
and usenmap
like this:nmap 192.168.1.0/24
This will allow
nmap
to 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!