private static boolean isLocalHost(InetAddress host) {
    try {
      return getLocalHost().equals(host);
    } catch (UnknownHostException ignored) {
      return false;
    }
  }
Returns true if host matches the LOCALHOST.
geode-common/src/main/java/org/apache/geode/internal/inet/LocalHostUtil.java