private static void QueryIEProxySettings(){ string strFileURL = "www.hotmail.com"; HttpWebRequest WebReqt = (HttpWebRequest)HttpWebRequest.Create(strFileURL); WebProxy WP = new WebProxy(WebReqt.Proxy.GetProxy(new Uri(strFileURL))); WP.Credentials = CredentialCache.DefaultCredentials; Console.WriteLine(WP.Address); // or use the Below... //CheckForProxy(new Uri("http://www.hotmail.com"));}private static void CheckForProxy(Uri resource){ WebProxy proxy = (WebProxy)WebProxy.GetDefaultProxy(); Uri proxyUri = proxy.GetProxy(resource); if (proxyUri == resource) { Console.WriteLine("No proxy for {0}", resource); } else { Console.WriteLine("Proxy for {0} is {1}", resource, proxyUri.ToString()); }}