public static InetAddress getLocalIPv4Address() {
        ArrayList<InetAddress> localAddresses = getLocalIPv4Addresses();
        return localAddresses.size() > 0 ? localAddresses.get(0) : null;
    }
@return The first local IPv4 address, or null
library/src/main/java/com/stealthcopter/networktools/IPTools.java