Visual Studio network performance with TFS through a VPN

.NET

I’ve been accessing a TFS server remotely through a VPN connection. I’d noticed that the performance was not that great, and then discovered this suggestion to specify the defaultProxy element in the devenv.exe.config file.

That worked pretty well, but I noticed that things were still a bit sluggish, so added a bypasslist element too, to ensure that anything on a 192.168.0.0 network doesn’t use the proxy either. That’s working nicely now.

<?xml version="1.0" encoding="utf-8"?>
<system.net>
   <settings>
     <ipv6 enabled="true"/>
   </settings>
   <defaultProxy enabled="true" useDefaultCredentials="true">
     <proxy bypassonlocal="True" proxyaddress=[http://proxy-server:8888](http://proxy-server:8888)/>
     <bypasslist>
       <add address="192\\.168\\.\\d{1,3}\\.\\d{1,3}" />
     </bypasslist>
   </defaultProxy>
</system.net>