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.

Published by

Konrad Fedorczyk

Konrad Fedorczyk

I’m interested in programming and gamedev. I especially luv HTML5 and everything connected to web technologies.

One thought on “How to find Raspberry Pi using MAC address”

Leave a Reply

Your email address will not be published. Required fields are marked *