Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 278
Vivian River Avatar asked Nov 09 '10 15:11

Vivian River


2 Answers

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

like image 123
Luke Kim Avatar answered Sep 29 '22 13:09

Luke Kim


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

like image 36
Reza S Avatar answered Sep 29 '22 11:09

Reza S