public static String getCasServerHostAddress(final String name) {
        return Unchecked.supplier(() -> {
            val host = getByName(name);
            return Optional.ofNullable(host).map(InetAddress::getHostAddress).orElse(null);
        }).get();
    }
Gets cas server host address.

@param name the name
@return the cas server host address
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/InetAddressUtils.java