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

Vivian River picture Vivian River · Nov 9, 2010 · Viewed 11.1k times · Source

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?

Answer

Luke Kim picture Luke Kim · Apr 7, 2011

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