proxy - No connection could be made because the target machine actively refused it 127.0.0.1:8118 -
This is causing the error - "Unable to connect to remote server "Tow default proxy - 8118. I have not got the solution for it but it did not work for me is goggled
code -
process p = new process (); P.StartInfo = New ProcessStartInfo (@ "C: \ Users \ King \ Download \ Tow Browser \ Application \ tor.exe", "ControlPort 9151 CircuitBuildTimeout 10"); P.Start (); Thread.Sleep (5000); Regex regex = New Regex ("\\ d {1,3} \\. \\ d {1,3} \\. \\ d {1,3} \\. \\ d {1,3}", RegexOptions.Multiline); Do {HttpWebRequest Request = (HttpWebRequest) WebRequest.Create ("http://whatismyipaddress.com/"); Request.Headers.Add ("cache-control", "max-age = 0"); request. Proxy = new webprocess ("127.0.0.1:8118"); request. KeepAlive = false; (Using the word reader = new StreamReader (response.GetResponseStream (), Encoding.GetEncoding ("utf-8")) (HttpWebResponse response = (HttpWebResponse) request.GetResponse ()) {Using {string content = reader .ReadToEnd (); Console.WriteLine (regex.Match (content) .Groups [0] .Value); }} Console. Write ("An Entent: Beans?"); String line = console.readline (); If break (line! = "Y"); } While (true); P.Kill (); Console.ReadLine (); Any idea which is doing wrong in the above code thanks
Tow default proxy port 8118. You have to download privoxy here for the first time
The series is going on both privoxy and tow, running on the same system, you will use something like For:
Forward socks5 / 127.0.0.1:9050 Change your config to work with tor by uncommenting the above line
C # sock behind the scenes It does not use, so we have to run the tow and Provosi on this you can now send a web request using tor.
Comments
Post a Comment