Allow Visual Studio Through Firewall: 3 Ways to Unblock it

Adjust your firewall settings to unblock Visual Studio

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • Adjust your firewall settings accordingly to allow Visual Studio to work properly.
  • In some rare instances, you might have to disable your firewall as a temporary workaround.
allow visual studio through firewall

Visual Studio is a great software for developers, but many are having firewall issues. This is why today we’re going to show you how to allow Visual Studio through a firewall on your PC.

Before we start, check if the firewall is blocking the program, and if it is, follow these steps to fix it properly.

Why does Windows Defender firewall has blocked some features of Visual Studio code message appear?

  • Issues with your firewall settings can cause this error to appear.
  • This is unusual behavior and it’s usually caused by an unknown glitch.

How do I stop Firewall from blocking Visual Studio?

1. Add Visual Studio to Firewall Exception List

  1. Now, this is a very obvious solution to this. You need to add Visual Studio to the Firewall exception list. If you haven’t done already, here is how to do it.
  2. Press Windows Key + R to open Run.
  3. Type Control and click OK.
  4. Click on System and Security.
  5. Click on Windows Defender Firewall.
  6. From the left pane click on Allow an app or feature through Window Defender Firewall.
    Windows 10 firewall blocking visual studio
  7. Click on Change Settings button.
  8. Now scroll through all the apps and locate Visual Studio.
  9. If you don’t find Visual Studio in the list of allowed apps, then click on Allow another app button.Windows 10 firewall blocking visual studio
  10. Click the Browse button and navigate to your Visual Studio installation.
  11. Select the .exe file in the Visual Studio installation folder and click Open. Click the Add button.
    Windows 10 firewall blocking visual studio
  12. That’s it. Visual Studio is now added to the exception list.
  13. Click OK to save the changes.
  14. Now add the following executable files from Visual Studio to the exception list from the same installation folder.
    devenv.exe
    mstest.exe
    mtm.exe
    vstest.executionengine.x86.exe or / vstest.executionengine.exe
  15. Restart the computer and launch Visual Studio and check if the error is resolved. 

2. Check third-party Firewall

  1. If you are using third-party antivirus on your Windows computer it is possible that it may also come with its own firewall.
  2. Launch the third-party antivirus software and check the Firewall settings.
    Windows 10 firewall blocking visual studio
  3. If required, add the aforementioned files to the exception list and save the changes.
  4. Restart the system and check for any improvements.

After doing that, check if the problem is resolved.

3. Disable the Firewall

  1. Click on Start and select Settings.
  2. Click on Update and Security.
  3. Select Windows Security.
    Windows 10 firewall blocking visual studio
  4. Click on Firewall and Network Protection.
  5. Click on your currently active network (Private / Public / Domain).Windows 10 firewall blocking visual studio
  6. Turn off the Firewall for the selected network.
    Windows 10 firewall blocking visual studio
  7. Now launch Visual Studio again and check for the error. If the issue persists, disable Firewall for the remaining networks as well.
  8. Check again for any improvements.

As you can see, it’s easy to allow Visual Studio through a firewall, as long as you follow our instructions.

Firewalls can cause issues with various apps, and we already wrote about Windows Defender Firewall blocking connections in one of our earlier guides.

What method worked for you? Let us know in the comments below.

More about the topics: visual studio, windows 10

User forum

0 messages