public static boolean validationIpPortV4FormatAddress(String address) {

        final int splitIndex = address.indexOf(':');
        if (splitIndex == -1 || splitIndex + 1 >= address.length()) {
            return false;
        }

        final String ip = address.substring(0, splitIndex);
        if (!validationIpV4FormatAddress(ip)) {
            return false;
        }

        final String portString = address.substring(splitIndex + 1);
        final int port = parseInteger(portString, HostAndPort.NO_PORT);
        if (!HostAndPort.isValidPort(port)) {
            return false;
        }

        return true;

    }
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