HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(
"http://localhost/ip.aspx"
);
request.Headers.Add(
"X_FORWARDED_FOR"
,
"0.0.0.0"
);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader stream =
new
StreamReader(response.GetResponseStream());
string
IP = stream.ReadToEnd();
stream.Close();
response.Close();
request =
null
;