visual-studio 确切地说,MSVSMON.exe(远程调试)必须打开哪些端口才能工作?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4135635/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Exactly what ports must be open for MSVSMON.exe (remote debugging) to work?
提问by Vivian River
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.
我要求我的网络管理员打开防火墙上的端口以允许远程调试。它在 MSDN 上的文档中说它需要 UDP 135。但是,管理员说正在使用许多非标准 19xx 端口。
Exactly what ports are required for remote debugging to work?
远程调试工作需要哪些端口?
回答by Luke Kim
You need to open ports on both your computer and the remote computer. Primarily it's TCP 135 not UDP 135.
您需要在您的计算机和远程计算机上打开端口。主要是 TCP 135 而不是 UDP 135。
All the ports and steps are listed here:
此处列出了所有端口和步骤:
http://msdn.microsoft.com/en-us/library/h0d7tte4(v=vs.120).aspx
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:
您可以将您的管理员链接到该页面。如果您没有 IPSec 规则,它基本上可以归结为:
Your PC: TCP 135
你的电脑:TCP 135
Remote PC: TCP 135, TCP 139, TCP 445, UDP 137, and UDP 138
远程 PC:TCP 135、TCP 139、TCP 445、UDP 137 和 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+.
更新:在更新时修复链接。请注意,Visual Studio 2010 和 Visual Studio 2012+ 之间的远程调试传输发生了显着变化。上述端口应该适用于 VS2010。按照链接查看有关 VS2012+ 的更多信息。
回答by Reza S
For Visual Studio 2013 I just needed to open 4018 and 4019 and it works like a breeze
对于 Visual Studio 2013,我只需要打开 4018 和 4019 就可以了

