I have Tor running on a remote server (Ubuntu) on port 9150 with the control port on 9151. I\'ve confirmed both are running via netstat -ant.
Here is my code which i
Your first snippet is proxying traffic over tor, but Stem's Controller.from_port() method uses the socket module too. As such Stem attempts to connect to your local control port, gets proxied through a tor exit node, then can't connect.