private static InetAddress tryToResolveLocalHost() {
    try {
      return tryFor(60, SECONDS, 1, SECONDS, LocalHostUtil::resolveLocalHost, Objects::nonNull);
    } catch (TimeoutException | InterruptedException ignored) {
    }
    return null;
  }
Resolves local host. Will retry if resolution fails.

@return local host if resolved otherwise null.
geode-common/src/main/java/org/apache/geode/internal/inet/LocalHostUtil.java