Search code examples
c#webclientsockstunneltor

C# Tunnel/Bridge from Http to Socks


I am trying to use Tor and instead of running privoxy etc client, I want to do it in my c# program ( so no privoxy GUIs). Tor only supports SOCKS right now , so I need a way to send Http Requests to this SOCKS TOR server ( either directly or via a http proxy ).

My program code ---WebProxy ( Http 127.0.0.1:2000 ) --- > Tor (SOCKS 127.0.0.1:5000)-->WebSite and back

I looked at starksoft, componentspace etc libraries but they all only provide developing clients of these protocols.

SO How can I write kind of a tunnel/bridge so when I send http ( no https for now ) requests and receive responses ( either using webclient or httpwebrequest etc classes.

I hope the explanation is clear if not please dont


Solution

  • It seems that this in combination with Chilkat Socket (commercial) provides what you are asking for...

    Another option seems to be mentalis (comes as C# source, license not clear ?)