Today we are implementing exceptionally straightforward case of how to pass application via proxy server and enable, disable any URL. How proxy server works is shown below:-
Its very easy and simple way to enable proxy inside ASP.Net Application.
Add element inside web.config file.
- <system.net>
- <defaultProxy>
- <proxy proxyaddress="server IP:Port number" usesystemdefault="true" bypassonlocal="true"/>
- <bypasslist>
- <add address="IP address or URL with port" />
- <add address="IP Address or URL with port" />
- </bypasslist>
- </defaultProxy>
- </system.net>
Description
- If you want use default proxy in application then no need to add proxy IP address.
- But if you want use custom IP address then you've to add IP address with port number inside web.config file.
- And if you want bypass any particular web URL or IP then you need to add bypasslist element inside defaultproxy element.