public static String toAddressString(InetSocketAddress address) {
        return address.getAddress().getHostAddress() + ":" + address.getPort();
    }
@param hostName
@return ip address or hostName if UnknownHostException
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/NetUtils.java