@gibme/arp
    Preparing search index...

    Function lookup

    • Looks up the MAC address for a device on your local network by its IP address.

      Works by pinging the target first (to populate the ARP table), then reading the system ARP cache. Supports Linux, macOS, and Windows out of the box.

      Parameters

      • ip: string

        the IPv4 or IPv6 address to look up

      • separator: string = ':'

        the character used between MAC octets (defaults to :)

      Returns Promise<string>

      the MAC address as an uppercase string (e.g. AA:BB:CC:DD:EE:FF)

      if the IP is invalid or the address can't be found in the ARP table