public static boolean validationIpV4FormatAddress(String address) {
        try {
            String[] eachDotAddress = address.split("\\.");
            if (eachDotAddress.length != 4) {
                return false;
            }

            for (String eachAddress : eachDotAddress) {
                if (Integer.parseInt(eachAddress) > 255) {
                    return false;
                }
            }
            return true;
        } catch (NumberFormatException ignored) {
            // skip
        }

        return false;
    }
Returns a list of ip addresses on this machine that is accessible from a remote source.
If no network interfaces can be found on this machine, returns an empty List.
commons/src/main/java/com/navercorp/pinpoint/common/util/NetUtils.java