private static boolean isValidAddress(InetAddress address) {
        if (address == null || address.isLoopbackAddress())
            return false;
        String name = address.getHostAddress();
        return (name != null
                && !ANYHOST.equals(name)
                && !LOCALHOST.equals(name)
                && IP_PATTERN.matcher(name).matches());
    }
@author Robert HG (254963746@qq.com) on 7/23/14.
lts-startup/src/main/java/com/github/ltsopensource/startup/admin/NetUtils.java