code: public String toStateString() {
          StringBuffer buff = new StringBuffer();
          buff.append("Host: ");
          buff.append(this.hostname);
          buff.append(':');
          buff.append(this.port);
          buff.append("\n");
          return buff.toString();
      }
docs: Returns a string containing the connection details.
  
  @return Connection details (eg. "Host: 192.168.1.67:6000").