0

I've the boost library installed and I want to make a socket connection though TOR. If I launch the tor.exe application and connect to port 9050 it doesn't show any error's but when I send some (random) things it will stop the connection. I think this is because i didn't send any valid/correct data to the proxy.

How can i use the TOR as a proxy with my (boost/asio) socket?

I want to use a TCP connection and connect to my VPS (i don't want to do a HTTP request).

Thanks.

Niels
  • 13
  • 7
  • http://stackoverflow.com/q/11523829/85371 – sehe May 24 '16 at 11:30
  • 1
    The example above does *NOT* show how to use a SOCKS proxy, it shows an HTTP proxy. Boost has an [example](http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/socks4/socks4.hpp) showing SOCKS4, but you'd be better off with SOCKS5 so you can resolve domain names over Tor as well. – drew010 May 24 '16 at 22:10

0 Answers0