I am new to stem(not the tree stem, the proxy). I made a python script that connects to a proxy using stem. I am getting a [Errno:111] error, how do I fix it? (The error occurred even though I typed:"service tor start" in the terminal) (Using Kali Linux)

Error:[Errno:111] Connection refused

Help will be appreciated a lot. Thank you.

closed as unclear what you're asking by cacahuatl, Andrew Lott Jan 8 '18 at 18:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Can we see more of the error? Errno 111 sounds like "Connection refused". Somewhere, you're connecting to a service that doesn't exist or isn't accepting connections. We need more information, e.g. some code snippet that illustrates what you're trying to do. – cacahuatl Dec 30 '17 at 20:31
  • Okay so it is connection refused, but there's still no context in what its being refused to? Can we get the previous requested code snippet? – cacahuatl Dec 30 '17 at 22:31
  • It was just that. Error [Errno 111] – Justin Chang Dec 31 '17 at 11:57
  • Yes, we need to see the code. There's no way we can tell anything from some random error without any context. – cacahuatl Dec 31 '17 at 20:06

I solved my answer by typing :

/etc/init.d/tor restart

in the terminal. Apparently Tor was not restarting properly.

Not the answer you're looking for? Browse other questions tagged or ask your own question.