10

I'm trying to use Tor as a proxy, to make other apps connect to the internet through the tor network. With Tor running and connected I opened another browser, and in the proxy settings I typed 127.0.0.1 port 9150, but when I load any page it says the proxy refused connection.

Why it does not work?

8

Warning: be extremely careful about sending traffic through tor when not using the tor browser. Any unencrypted traffic will be seen by a potentially malicious exit node. Using any other browser besides tor browser to browse the internet is highly discouraged and will likely not provide any anonymity because your browser will give up your real ip address or enough information to fingerprint you uniquely.

That said, if you are absolutely sure that you want to use the tor proxy manually, read this faq entry which will answer your question.

https://www.torproject.org/docs/faq.html.en#TBBSocksPort

If you are trying to use some external application with Tor, step zero should be to reread the set of warnings for ways you can screw up. Step one should be to try to use a SOCKS proxy rather than an HTTP proxy. Typically Tor listens for SOCKS connections on port 9050. Tor Browser listens on port 9150.

If your application doesn't support SOCKS proxies, feel free to install privoxy. However, please realize that this approach is not recommended for novice users. Privoxy has an example configuration of Tor and Privoxy.

If you're unable to use the application's native proxy settings, all hope is not lost. See below.

  • 1
    If you setup in your browser Tor as Http Proxy, Tor will refuse the connection because Tor isn't a Http Proxy, but a Socks proxy. So if you can setup the type of the proxy that you will use, just set socks. – user3524 Aug 6 '15 at 18:03
  • @nullUser would you say that stackoverflow.com/a/23320554/2170166 answer is a better solution or has it got the same risks as above. – Mayank Jan 23 '18 at 4:59
  • @Mayank the proposed solution you link to is a terrible idea. Using it will likely provide you no anonymity. – nullUser Jan 25 '18 at 16:30
  • @nullUser I need to scrape some content and I need to change IP so as to maintain my access, is there a solution for making http calls with different IP. I am using selenium with java. – Mayank Jan 26 '18 at 8:28
  • @Mayank, generally what you are describing is frowned upon. If a site has blocked you for making too many requests, changing IP addresses to keep making more requests will be seen as malicious. Tor can be used for this purpose for a while (until the site operator decides to block all tor ip addresses), but it is frowned upon and you should not expect any anonymity properties from tor if you use the proposed solution. Consider that if you take these actions and the site operator blocks all tor traffic, you may be the cause of legitimate users who wish to use tor being unable to access the site. – nullUser Jan 27 '18 at 18:07
2

Use Polipo as a HTTP/HTTPS proxy : official website and GitHub sources. Not all apps are good with SOCKS proxies

  • 3
    Polipo is no longer maintained – Jonathan Cross Sep 24 '18 at 23:23
  • @JonathanCross so what? it does the job requested. And - if you're deeply concerned about the maintained-only code - check the latest Tor's built-in HTTPS proxy, works fine as well – Alexey Vesnin Sep 25 '18 at 14:40
  • 1
    Using unmaintained software ignores the most basic recommendations for "best practice" and will likely lead to unforeseen bugs. The last code change was 2.5 years ago, before the creator marked the project as obsolete. People visiting this site for answers should be aware of that. – Jonathan Cross Sep 26 '18 at 13:13
0

First you configured the wrong port.

Tor Browser listens on 9150

tor uses 9050 (get used to the way I spelled the 2 with the capital and the lowercase because that is how you tell the difference in a lot of documentation)

One can not to my knowledge use the browser bundle as a proxy. And does not even seem possible.

Knowing these 2 things more than one answer her can be thrown in the bin because they are useless.

Expecially the one reccomending that you use unmaintained deprecated applications since this poses not only bugs but most importantly security risks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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