Hy,
I am having trouble using Stem to connect to the tor controller, while at the same time browsing the web using the TBB. The tor control settings can be edited in Vidalia -> settings -> advanced. There it is configured by default to use port 9150 and a random password for authentication, but I can not see what password. If I change any of these settings, then I cannot browse anymore, and TB displays "The proxy server is refusing connections".
I am using this snippet:
import stem from stem.control import Controller
with Controller.from_port(port = 9151) as controller: controller.authenticate('') # provide the password here if you set one
bytes_read = controller.get_info("traffic/read") bytes_written = controller.get_info("traffic/written")
print "My Tor relay has read %s bytes and written %s." % (bytes_read, bytes_written)
from https://stem.torproject.org/tutorials/the_little_relay_that_could.html
So my problem is that I can not connect to the tor controller while at the same time browsing using the tbb. How do I fix this?
Kind regards, Rémi.
Hi Rémi, Vidalia does not show the randomly generated password because it doesn't know it (the password is generated, used to connect, then cleared from memory). To use another controller like Stem you will need to chose another authentication mechanism. I would suggest cookie auth - it's the easiest to work with.
If I change any of these settings, then I cannot browse anymore, and TB displays "The proxy server is refusing connections".
That's odd. I've certainly attached controllers to TBB before. After changing the authentication mechanism did you restart TBB?
Cheers! -Damian
Thank you.
After changing the settings I did restart the tbb. I also tried changing the settings while the browser is not running at all. I was also surprised that it didn't work. After changing the settings back to their default, the tb remains broken and I have to discard it and use another copy of the bundle. I am using the latest bb on osx 10.7.5. Should I file a bug report and try on a different platform?
R.
On 10/26/13 11:56 PM, Damian Johnson wrote:
Hi Rémi, Vidalia does not show the randomly generated password because it doesn't know it (the password is generated, used to connect, then cleared from memory). To use another controller like Stem you will need to chose another authentication mechanism. I would suggest cookie auth - it's the easiest to work with.
If I change any of these settings, then I cannot browse anymore, and TB displays "The proxy server is refusing connections".
That's odd. I've certainly attached controllers to TBB before. After changing the authentication mechanism did you restart TBB?
Cheers! -Damian _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev