I have installed Tor to run as a service on my windows machine and I am trying to make requests in python through the Stem package. In my torrc file I have specified ControlPort as 9051 and set a HashedControlPassword. When I run netstat, I see that Tor is running on localhost:9050 but there is nothing listening to port 9051. As a result, when I try to connect to the ControlPort in python:
Controller.from_port(port=9051)
results in a
[Errno 10061] No connection could be made because the target machine actively refused it
I've tried restarting the service, I even reinstalled Tor Browser but nothing seems to make the ControlPort work.
context_manager
form:with Controller.from_port(port = 9051) as controller: controller.authenticate(password="<password>")
– AChampion