How to find Raspberry Pi using MAC address

When you want to find your headless but networked Raspberry Pi and you’re lazy like me use nmap:

sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'

Mask /24 means that addresses from 192.168.1.0 to 192.168.1.254 will be searched. You can extend that to /16 if you don’t know subnet of your device.




Comments

0 responses to “How to find Raspberry Pi using MAC address”

  1. […] previously posted a note about finding Raspberry Pi without knowing it’s ip address. Well, basically it’s the […]