public static String getIpByHost(String hostName) {
        try {
            return InetAddress.getByName(hostName).getHostAddress();
        } catch (UnknownHostException e) {
            return hostName;
        }
    }
@param hostName
@return ip address or hostName if UnknownHostException
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/NetUtils.java