private static void validateIpAddr(String ipAddr, String name) {
        if (!NetUtil.isValidIpV4Address(ipAddr) && !NetUtil.isValidIpV6Address(ipAddr)) {
            throw new IllegalArgumentException("Invalid " + name + ": " + ipAddr);
        }
    }
Returns a newly-created {@link InstanceInfo} based on the properties of this builder.
eureka/src/main/java/com/linecorp/armeria/server/eureka/InstanceInfoBuilder.java