Hacker News new | ask | show | jobs
by mmcallister 2004 days ago
you don't need to know the IP address , you can just dump the ARP cache and look for the MAC address you need.

on Linux:

  $ arp -n | grep "MAC_ADDRESS_HERE"
  192.168.86.23            ether   MAC_ADDRESS_HERE   C   wlp4s0
if it's in the ARP cache it's "home" (or rather was, within the last 60 seconds, or gc_stale_time)