title: How can I programmatically remove the 2 connection limit in WebClient
body: <p>Those "fine" RFCs mandate from every RFC-client that they beware of not using more than 2 connections per host...</p>
  
  <p>Microsoft implemented this in WebClient. I know that it can be turned off with </p>
  
  <p>App.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  &lt;configuration&gt; 
   &lt;system.net&gt; 
    &lt;connectionManagement&gt; 
     &lt;add address="*" maxconnection="100" /&gt; 
    &lt;/connectionManagement&gt; 
   &lt;/system.net&gt; 
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>(found on <a href="http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/1f863f20-09f9-49a5-8eee-17a89b591007" rel="noreferrer">http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/1f863f20-09f9-49a5-8eee-17a89b591007</a> )</p>
  
  <p>But how can I do it programmatically?</p>
  
  <p>Accordin to
  <a href="http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.defaultconnectionlimit.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.defaultconnectionlimit.aspx</a></p>
  
  <p>"Changing the DefaultConnectionLimit property has no effect on existing 
  ServicePoint objects; it affects only ServicePoint objects that are 
  initialized after the change. If the value of this property has not been 
  set either directly or through configuration, the value defaults to the 
  constant DefaultPersistentConnectionLimit."</p>
  
  <p>I'd like best to configure the limit when I instanciate the WebClient, but just removing this sad limitation programmatically at the start of my programm would be fine, too.</p>
  
  <p>The server I access is not a regular webserver in the internet, but under my control and in the local lan. I want to do API-calls, but I don't use webservices or remoting</p>