I find many example how use Privoxy/TOR for proxy. For example: How to use Tor to make a C# HttpWebRequest
First I installed Vidalia Bundle and than also Privoxy.
Vidalia Bundle using address 127.0.0.1:9115
Privoxy using address 127.0.0.1:8118
I try in code create request on server http://whatismyipaddress.com/.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://whatismyipaddress.com/");
request.Proxy = new WebProxy("127.0.0.1:8118");
using (var response = request.GetResponse())
{
using (var reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")))
{
webBrowser1.DocumentText = reader.ReadToEnd();
}
}
But this server still see my IP address. What I am doing wrong ? Any advance, thank you.
Edit, with leppie advice: I use this constructor :
request.Proxy = new WebProxy("127.0.0.1",8118);
But server still see my IP adress. :(
Application is using Privoxy on port 8118. I need foward on 9115-this is TOR port.