I was at work running a Pi headless… And I realised I had no way of knowing what the IP address was. I’d tried using Angry IP Scanner but, for some reason, this failed to work. After a little Googling, I found this answer on the Raspberry Pi forums from well-known Pi guru Gordon Henderson.
This only works from Linux, but is useful to know:
If e.g. your LAN is 192.168.254.0/24 then create a bash script:
#!/bin/bash # findPi: # Find all Pi's on the LAN fping -a -r1 -g 192.168.254.0/24 &> /dev/null arp -n | fgrep " b8:27:eb"
192.168.254.30 ether b8:27:eb:a5:16:f6 C eth0 192.168.254.33 ether b8:27:eb:94:39:fd C eth0 192.168.254.31 ether b8:27:eb:87:37:da C eth0
This works because all Pis have MAC addresses beginning with b8:27:eb (this info also found on the Raspberry Pi forum thread)