It’s a question I have seen a few times on the Microsoft forums: How do you get the default system proxy settings? Well, let me tell you the answer:
WebRequest.GetSystemWebProxy will return a proxy object with the default system proxy in it.
Using the DefaultWebProxy property on WebRequest you can get the proxy for the system unless it has been overridden in your app.config file. This is the best property to use so your app can be repointed to a different proxy. That property can also be set by your code to repoint your app
So that’s the simplest way to get hold of the proxy settings for Windows apps.