public static InetAddress getLocalHost() {
    try {
      return doGetLocalHost();
    } catch (Exception e) {
      throw new SamzaException("Error while getting localhost", e);
    }
  }
Returns the the first host address which is not the loopback address, or {@link InetAddress#getLocalHost} as a
fallback.

@return the {@link InetAddress} which represents the localhost
samza-core/src/main/java/org/apache/samza/util/Util.java