Configure Firewall for Remote Debugging Dialog Box


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Configure Firewall for Remote Debugging Dialog Box.

This dialog box appears when the Windows Firewall blocks the debugger from receiving information over the network. To continue remote debugging, you must open a hole in the firewall so the debugger can receive information.

System_CAPS_ICON_caution.jpg Caution

Opening a hole in the Firewall may expose your machine to security threats that the Firewall is designed to block. Opening a hole for remote debugging unblocks ports 4020 and 4021 in Visual Studio 2015. In other versions of Visual Studio, other port numbers are used. For more information, see Remote Debugger Port Assignments. In addition, it allows the debugger to open additional ports. For more information, see Configure the Windows Firewall for Remote Debugging.

Cancel remote debugging
Cancels the remote debugging attempt. The security settings of your machine remain intact.

Unblock remote debugging from computers on the local network (subnet)
Enables remote debugging of machines on your local subnet. This may open vulnerabilities to machines on your local subnet, but the firewall continues to block information coming from outside the subnet.

Unblock remote debugging from any computer
Enables remote debugging of machines anywhere on the network. This setting is the least secure.

Debugger Security
Set Up the Remote Tools on the Device
Debugging User Interface Reference