protected static String getLocalHostName() {
    try {
      return LocalHostUtil.getCanonicalLocalHostName();

    } catch (UnknownHostException ex) {
      throw new IllegalStateException(
          "Could not determine localhost?!", ex);
    }
  }
Returns the {@linkplain InetAddress#getCanonicalHostName canonical name} of the local machine.
geode-core/src/main/java/org/apache/geode/admin/internal/ManagedEntityConfigImpl.java