code: def startserver(self, hostname="localhost", port=8080,
                      daemon=False, handle_sigint=True):
          
          if daemon:
              print("Sorry daemon server not supported just yet.")
              # TODO start as daemon similar to bitcoind
          else:
              print("Starting %s json-rpc service at http://%s:%s" % (
                  self.__class__.__name__, hostname, port
              ))
              self._http_server = HTTPServer(
                  server_address=(hostname, int(port)),
                  RequestHandlerClass=self.get_http_request_handler()
              )
  
              if handle_sigint:
                  def sigint_handler(signum, frame):
                      self._post_shutdown()
                      sys.exit(0)
                  signal.signal(signal.SIGINT, sigint_handler)
              self._http_server.serve_forever()
docs: Start json-rpc service.