Exactly what ports must be open for MSVSMON.exe (remote debugging) to work?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 16:01:08

问题


I'm asking my network admin to open up ports on the firewall to allow remote debugging. It says in the documentation on MSDN that it needs UDP 135. However, the admin says that a number of non-standard 19xx ports are being used.

Exactly what ports are required for remote debugging to work?


回答1:


You need to open ports on both your computer and the remote computer. Primarily it's TCP 135 not UDP 135.

All the ports and steps are listed here:

http://msdn.microsoft.com/en-us/library/h0d7tte4(v=vs.120).aspx

You can link your Admin to that page. If you don't have IPSec rules it basically comes down to:

Your PC: TCP 135

Remote PC: TCP 135, TCP 139, TCP 445, UDP 137, and UDP 138

Update: Fix the link as it was updated. Note, Remote Debugging transport changed significantly between Visual Studio 2010 and Visual Studio 2012+. The above ports should work for VS2010. Follow the link to see more information on VS2012+.




回答2:


For Visual Studio 2013 I just needed to open 4018 and 4019 and it works like a breeze



来源:https://stackoverflow.com/questions/4135635/exactly-what-ports-must-be-open-for-msvsmon-exe-remote-debugging-to-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!