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.
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:
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.
In Vs2010 managed remote debugging is done via RPC. If your remote OS supports it - you can try to use configure RPC dynamic port allocation and open configured ports on your firewall. Btw in addition to ports you also have to configure user access.
Don't know your OS - One more link for more modern operating systems How to restrict RPC dynamic TCP/IP port allocation
* NetSh INT IPV4 SET DynamicPort TCP Start=1024 num=65535
* NetSh INT IPV4 SET DynamicPort UDP Start=1024 num=65535
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With