public static InetSocketAddress getLocalSocketAddress(String host, int port) {
        return isInvalidLocalHost(host) ?
                new InetSocketAddress(port) : new InetSocketAddress(host, port);
    }
@author Robert HG (254963746@qq.com) on 7/23/14.
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/NetUtils.java