code: private String hostAndPort() {
          int start = url.indexOf("://") + 3;
          int end = url.indexOf("/", start);
          return url.substring(start, end);
      }
docs: parse the url and get the host and port string.
  
  @return the host:port string