public static String getIPAddressFromMAC(String macAddress) {
        if (macAddress == null) {
            return null;
        }

        if (!macAddress.matches("..:..:..:..:..:..")) {
            throw new IllegalArgumentException("Invalid MAC Address");
        }

        HashMap<String, String> cache = getAllIPAndMACAddressesInARPCache();
        for (String ip : cache.keySet()) {
            if (cache.get(ip).equalsIgnoreCase(macAddress)) {
                return ip;
            }
        }
        return null;
    }
Try to extract a IP address from the given MAC address

@param macAddress in format "01:23:45:67:89:ab" to search for
@return the IP address found or null in format "192.168.0.1"
library/src/main/java/com/stealthcopter/networktools/ARPInfo.java