tags:

views:

58

answers:

2

How to programmatically configure a proxy server for connectivity on the local network to the internet using a windows application.

Please suggest a good example/reference.

Screenshot shows the windows application form for setting proxy server Proxy Setting

+1  A: 

Well, it depends on what you are using to do the internet traffic. If you are using a WebRequest, or anything that implements it, you can use the WebProxy object. This provides many properties for implementing this.

E.g.:

WebProxy proxy = new WebProxy("192.168.1.1:12345", true);

The above creates the proxy according to your settings, and bypasses on local. Now you can set this to your web request, or web service calls under the Object.Proxy property.

Links:

Kyle Rozendo
+1  A: 

Setting Windows internet connection proxy from C#. Use this link as reference

Krishnan