Ways to add a program to firewall exceptions in Windows 10 and 11

Windows 10 offers users a lot of options for working with various files and applications. And among other things, this shell also provides a firewall – a specialized application for effective protection against various kinds of network attacks. The utility checks traffic in real time and automatically blocks potentially dangerous sources. A firewall does not replace antivirus software, but it can provide additional protection.

Windows Firewall Exceptions

At the same time, in some cases, the firewall built into the operating system does not work quite correctly, blocking fairly safe programs and games. As a result, the user faces a number of problems. And in order to guarantee the normal operation of the applications of interest, it is necessary to add them to the firewall exceptions using one of the available methods.

Configuration via “Windows Security”

The easiest way is to use a separate settings interface called “Windows Security”.

Sequencing:

  1. Through the Microsoft Defender icon or the general Settings menu, open the Windows Security utility. Settings icon in Windows 11 Windows Security section in Windows 11
  2. Go to the section called “Firewall and Network Security”. Firewall and Network Protection section in Windows 11
  3. Examine the list of configured network profiles and click on the “Allow the application through the firewall” button located below. Link "Allow apps through firewall" in Windows 11

    You can also open the menu of interest through the Control Panel by going to the “Windows Defender Firewall” section. There will be a link “Allow communication with an app or feature in Windows Defender Firewall”. List of permissions in Windows 11

  4. Find the item “Change settings” and select it. It should be borne in mind that you will need administrator rights to make the appropriate changes. Change Settings button in Windows 11
  5. Find the desired application in the list that appears and set the appropriate checkboxes, allowing access to the network.
  6. If you cannot find the required program in the list, you must click on the “Allow another application” button located next to it. Allow another app button in Windows 11
  7. Now, through the “Browse” you need to specify the path to a specific application that will be added to the firewall exceptions. Browse button in Windows 11
  8. In the “Types of networks” section, check the boxes next to the networks to which the application can freely connect.
  9. Click on the “Add” button. Add button in Windows 11

After applying the changes, the settings will be saved. From this moment on, the program used will begin to access the network normally and will not be blocked by built-in security systems.

Firewall Monitor with Advanced Security

You can also use the firewall monitor to configure network access. This is a built-in service that is not difficult to find in any version of the Windows operating system.

The debugging process does not take much time and comes down to executing a simple algorithm:

  1. Using the key combination Win + R, open the “Run” window for entering various commands.
  2. Enter the wf.msc command in the window and press the Enter key to activate the procedure. wf.msc Command in Windows
  3. Click on the “Rules for incoming connections” button. Inbound rules section in Windows 11
  4. In the right part of the window that opens, find the item “Create a rule” and click on it with the mouse. The "Create Rule" button. in Windows 11
  5. Go to the “For the program” section. Item "For the program" in Windows 11
  6. Select “Browse”, and then through Explorer specify the path to the executable file of the application of interest. Program Path in Windows 11
  7. Give permission to connect to the network. Allow Connection button in Windows 11
  8. Leave all other marks in place. Choosing profiles in Windows 11
  9. At the last stage, come up with a name for the rule and its description. This will seriously help in the future with further system settings. Rule name in Windows 11

Once the rule is saved in the Firewall Monitor, it will take effect. Thus, the specified program will be able to freely connect to the network without any restrictions from the Defender.

Through the command line

Each assembly of Windows has a multifunctional tool called “Command Line”, through which, using certain algorithms, you can make almost any changes.

In this case, you need to open the command prompt as an administrator by finding it in the list of programs or through the built-in search. You can also use the Run window (Win + R) by typing cmd in it.

cmd command in run console in windows 11

Once the command line is open, you need to enter special commands into it to allow a specific program to access the network or open a specific port.

Allowing incoming and outgoing connections, respectively:

  • netsh advfirewall firewall add rule name=”RuleName” dir=in action=allow program=”path to program” enable=yes
  • netsh advfirewall firewall add rule name=”RuleName” dir=out action=allow program=”Program Path” enable=yes

netsh advfirewall firewall add rule name command in Windows

Both presented lines introduce edits that work immediately on all network profiles.

Opening an incoming and outgoing connection to a port:

  • netsh advfirewall firewall add rule name=”RuleName” dir=in action=allow protocol=TCP localport=portnumber
  • netsh advfirewall firewall add rule name=”RuleName” dir=out action=allow protocol=TCP localport=portnumber

Command to connect to a port

Thus, any user can easily solve the problem of denied access to the network for any program. The easiest way is to use the standard settings, but the command line allows you to make deeper changes to the system.

Have you tried making firewall exceptions yourself? If yes, please share your experience in the comments.

Leave a Reply

Your email address will not be published. Required fields are marked *