Skip to content

Instantly share code, notes, and snippets.

@nikanos
Last active October 31, 2019 10:38
Show Gist options
  • Save nikanos/50497e0f7566645651809e485b8b4775 to your computer and use it in GitHub Desktop.
Save nikanos/50497e0f7566645651809e485b8b4775 to your computer and use it in GitHub Desktop.
.NET Configuration file - proxy settings
.NET Documentation
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/proxy-element-network-settings
bypassonlocal Specifies whether the proxy is bypassed for local resources. Local resources include the local server (http://localhost, http://loopback, or http://127.0.0.1) and a URI without a period (http://webserver). The default value is unspecified.
proxyaddress Specifies the proxy URI to use.
usesystemdefault Specifies whether to use Internet Explorer proxy settings. If set to true, subsequent attributes will override Internet Explorer proxy settings. The default value is unspecified.
<?xml version="1.0"?>
<configuration>
<configSections>
<!-- config sections -->
</configSections>
<system.net>
<defaultProxy enabled="true">
<proxy usesystemdefault="true" proxyaddress="http://127.0.0.1:8888" bypassonlocal="false" />
</defaultProxy>
</system.net>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment