有没有办法在使用代理时隐藏/覆盖真实的IP?

时间:2017-11-28 15:24:14

标签: c#

我通过代理使用以下代码进行网络请求。有没有办法在使用下面的代码时找到原始的ip?

WebRequest request = WebRequest.Create("some url");

//Get random proxy address

IWebProxy proxy = new WebProxy("any ip address","any port");
request.Proxy = proxy;

WebResponse response = request.GetResponse();

// Get the stream containing content returned by the server.  
Stream dataStream = response.GetResponseStream();

StreamReader reader = new StreamReader(dataStream);
// Read the content.  
string responseFromServer = reader.ReadToEnd();
// Clean up the streams and the response.  
reader.Close();
response.Close();

0 个答案:

没有答案