In C #, can you find which proxy server uses your computer?


I've noticed some programs (such as IE and Firefox) can automatically detect a network proxy server to use for Internet traffic. Is it possible to do the same in C#? Are there APIs for this? Thanks!

You're probably looking for WebRequest.DefaultWebProxy or possibly WebRequest.GetSystemWebProxy. This should be able to pick up whatever IE detects.

Also, other SO questions indicate that HttpWebRequest will go through your system proxy by default.