tags:

views:

273

answers:

1

Hi,

I need to know what this proxy and in the past I used an IP webservice to get the IP. Is there was some way in C# to get the actually proxy IP address.

If I could just ping somewhere and get the IP that way that would be ideal.

A: 

found a possible solution here

protected void DNSLookup(string domain)
{
try
{
//performs the DNS lookup
IPHostEntry he = Dns.GetHostByName(domain);
IPAddress[] ip_addrs = he.AddressList;
txtIPs.Text = "";
foreach (IPAddress ip in ip_addrs)
{
txtIPs.Text += ip + "\n";
}
}
catch (System.Exception ex)
{
lblStatus.Text = ex.ToString();
}
}
arri.me
Yes I have tried this method but it only returns the IP address that I have originally and not the Proxy
Pete Rosed
what type of proxy are you referring to?
arri.me