title: How to setup an external firewall to enable Visual Studio remote debugging
body: <p>I've read many articles here, at MS and through Google, on remote debugging and all of them cover Windows Firewall and how to open ports and adding the debugger remote agent as an exception. It seems that using the remote debugger it must be able to dynamically open ports.</p>
  
  <p>Using an external firewall, this is not possible. Does anybody know what configuration to use to allow remote debugging through an external firewall? Client computer has all ports open, server has these ports opened:</p>
  
  <ul>
  <li>TCP 135, 139, 445</li>
  <li>UDP 137, 138, 500, 4500</li>
  </ul>
  
  <p>EDIT: Using Windows 2008 R2 SP1 on the website side and Windows 7 SP1 on the debugging side, where VS is installed. The firewall, however, is external to both and must be configured separately, i.e., it has no info on the running process asking for a port, it just sees the port request.</p>