public static String getBindAddressForHttpService(DistributionConfig config) {
    String bindAddress = config.getHttpServiceBindAddress();
    if (StringUtils.isNotBlank(bindAddress)) {
      return bindAddress;
    }

    bindAddress = config.getServerBindAddress();
    if (StringUtils.isNotBlank(bindAddress)) {
      return bindAddress;
    }

    bindAddress = config.getBindAddress();
    if (StringUtils.isNotBlank(bindAddress)) {
      return bindAddress;
    }

    try {
      bindAddress = LocalHostUtil.getLocalHost().getHostAddress();
      logger.info("RestAgent.getBindAddressForHttpService.localhost: "
          + LocalHostUtil.getLocalHost().getHostAddress());
    } catch (UnknownHostException e) {
      logger.error("LocalHost could not be found.", e);
    }
    return bindAddress;
  }
Agent implementation that controls the HTTP server end points used for REST clients to connect
gemfire data node.
<p>
The RestAgent is used to start http service in embedded mode on any non manager data node with
developer REST APIs service enabled.

@since GemFire 8.0
geode-core/src/main/java/org/apache/geode/management/internal/RestAgent.java