How To Find IP Address Of Raspberry Pi
If you have a Raspberry Pi there is a good chance that you will want to access it over the network. We are going to show you how to find the IP address of a Raspberry Pi either over the network or while logged in with a keyboard and monitor. You can also avoid having to find the IP if you configure it statically ahead of time. You can edit your network configuration on your SD card using your laptop before even inserting it to boot from.
See this page for more details: How To Connect Raspberry Pi To Laptop Via Wifi
If you are logged in locally with a keyboard and monitor it is really easy. You can use any of these three commands. All or some of them may be installed on your system depending on your distro and version.
hostname -I ifconfig -a ip a
Finding the IP address remotely is also pretty easy. You are probably asking yourself any of the following:
- How do I find the IP address of my Raspberry Pi without a monitor?
- How do I find my Raspberry Pi on my network?
- How do I locate my IP address?
There is a good chance that you can actually ping your Raspberry Pi using the default hostname. Rasbian multicast DNS is supported by default. This may also work on Retropie. Try either of these commands:
ping raspberrypi.local ping retropie
You can try using the arp command. It will show any systems on your current network so long as they are in your arp cache. You will need to be on the same network ( same switch or router ). So long as you don’t have to route to another network it should work fine. Just run the following. It should work from Linux, Windows, and OSX.
You could also try searching your network with nmap. You can install and run it on Debain/Ubuntu like this ( swap in your network range ).
sudo apt install nmap sudo nmap -sn 192.168.1.0/24
You should be able to tell which system is your Raspberry Pi because the line in the output for your MAC address is a dead giveaway. For example this is my Raspberry Pi router on my network as seen by nmap:
MAC Address: B8:27:EB:F6:10:3C (Raspberry Pi Foundation)
Another alternative option would be to login to your local router and look at what systems are connected. This is an option if you are on a home network or you happen to have access to your router. You can usually reach a consumer router using a web browser at a URL like the following: http://192.168.1.1. You might have a slightly different IP range. Adjust as needed. You should be able to login using the username/password on the bottom of your router (unless you changed the password which you should have). Once logged in you should have an option to show what devices are connected.