public static boolean isIpAddressLocalNetwork(InetAddress addr) {
        return addr != null && addr.isSiteLocalAddress();
    }
Check if the provided ip address refers to the localhost

https://stackoverflow.com/a/2406819/315998

@param addr - address to check
@return - true if ip address is self
library/src/main/java/com/stealthcopter/networktools/IPTools.java