Three Easy Ways to Discover the IP Address of Your Raspberry Pi

Learn how to find the IP address of your Raspberry Pi in three simple steps, no matter if it’s connected via Wi-Fi or Ethernet. …


Updated August 14, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Learn how to find the IP address of your Raspberry Pi in three simple steps, no matter if it’s connected via Wi-Fi or Ethernet.

  1. First Method - Using the Command Line Interface (CLI)

Open up a terminal window on your Raspberry Pi and type in the following command:

hostname -I

This will return the IP address assigned to your device by your router. For example, it might look something like this:

192.168.0.104

Note that this method only works if your Raspberry Pi is connected to a network. If you haven’t set up networking yet, refer to the official documentation for assistance.

  1. Second Method - Using nmap

If you have another computer or device on your network, you can use nmap to scan the IP range and find your Raspberry Pi’s IP address. Open a terminal window on the other device (e.g., laptop or smartphone) and enter:

sudo nmap -sn 192.168.0.0/24

Replace 192.168.0.0/24 with your network’s IP range if it’s different. This will return a list of all devices connected to the network, along with their IP addresses. Look for the one that corresponds to your Raspberry Pi (e.g., b8:27:eb:xx:xx:xx).

  1. Third Method - Using the Desktop GUI

If you’re using the desktop version of Raspbian, you can find the IP address by clicking on the network icon in the top right corner of the screen and selecting “Connection Information.” Here, you will see both your Wi-Fi and Ethernet IP addresses.

Remember that the IP address may change if you restart your router or reconnect your device to a different network. If you need a static IP address for your Raspberry Pi, refer to the official documentation for instructions on how to set one up.

Conclusion: Now you know three easy ways to find the IP address of your Raspberry Pi. Whether you’re connecting via Wi-Fi or Ethernet, these methods can help you locate your device and establish a connection. Just make sure your Raspberry Pi is connected to a network before trying any of them!