code: public void join() {
      try {
        if (this.dnProtocolServer != null) {
          this.dnProtocolServer.join();
        }
        if (this.server != null) {
          this.server.join();
        }
      } catch (InterruptedException ie) {
      }
    }
docs: Wait for service to finish.
  (Normally, it runs forever.)