且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

确切地说,必须打开哪些端口才能使MSVSMON.exe(远程调试)正常工作?

更新时间:2022-11-30 16:05:24

您需要同时打开计算机和远程计算机上的端口.首先是TCP 135,而不是UDP 135.

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

您可以将管理员"链接到该页面.如果您没有IPSec规则,则基本上可以归结为:

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

您的PC: TCP 135

Your PC: TCP 135

远程PC: TCP 135,TCP 139,TCP 445,UDP 137和UDP 138

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

更新:在更新链接时对其进行修复.注意,在Visual Studio 2010和Visual Studio 2012+之间,远程调试传输发生了显着变化.以上端口适用于VS2010.单击链接以查看有关VS2012 +的更多信息.

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+.