This documentation is archived and is not being maintained.

<add> Element for bypasslist (Network Settings)

Adds an IP address or DNS name to the proxy bypass list.

<configuration> Element
  <> Element (Network Settings)
    <defaultProxy> Element (Network Settings)
      <bypasslist> Element (Network Settings)
        <add> Element for bypasslist (Network Settings)
   address = "regular expression" 

The following sections describe attributes, child elements, and parent elements.





A regular expression describing an IP address or DNS name.

Child Elements


Parent Elements




Provides a set of regular expressions that describe addresses that do not use a proxy.

The <add> element inserts regular expressions describing IP addresses or DNS server names to the list of addresses that bypass a proxy server.

The value of the address attribute should be a regular expression that describes a set of IP addresses or host names.

You should use caution when specifying a regular expression for this element. The regular expression "[a-z]+\.contoso\.com" matches any host in the domain, but it also matches any host in the domain. To match only a host in the domain, use an anchor ("$"): "[a-z]+\.contoso\.com$".

For more information about regular expressions, see ..NET Framework Regular Expressions.

Configuration Files

This element can be used in the application configuration file or the machine configuration file (Machine.config).

The following code example adds two addresses to the bypass list. The first bypasses the proxy for all servers in the domain; the second bypasses the proxy for all servers whose IP address begins with 192.168.

        <add address="[a-z]+\.contoso\.com$" />
        <add address="192\.168\.\d{1,3}\.\d{1,3}" />