private static boolean isRemoteAddressUnknown(String ip) {
    return ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip);
  }
Checks whether ip address is null, empty or unknown
@param ip
@return
ambari-server/src/main/java/org/apache/ambari/server/utils/RequestUtils.java