protected void setHost(String host) {
    if (isRunning()) {
      throw new IllegalStateException("RMIRegistryService is running, cannot change the host");
    }
    this.host = host;
  }
Sets the host on which rmiregistry listens for incoming connections

@param host the host on which rmiregistry listens for incoming connections
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/RMIRegistryService.java