public @NotNull String marshalForClients() {
    StringBuilder sb = new StringBuilder();

    if (!isEmpty(hostnameForClients)) {
      sb.append(hostnameForClients);
    } else if (!isEmpty(bindAddress)) {
      sb.append(bindAddress);
    } else if (null != host) {
      if (isMcastId()) {
        sb.append(host.getHostAddress());
      } else {
        sb.append(SocketCreator.getHostName(host));
      }
    } else {
      sb.append(hostname);
    }

    sb.append("[").append(port).append("]");
    return sb.toString();
  }
Returns marshaled string that is compatible as input for unmarshal preferring the
hostnameForClients or bindAddress values before the host value.

@see #unmarshal(String)
@see #unmarshal(String, String)
geode-core/src/main/java/org/apache/geode/internal/admin/remote/DistributionLocatorId.java