Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to allow an app through the Windows 11 firewall

Add a Windows 11 firewall exception through Windows Security or PowerShell, choose the right network profile, and remove the rule when you no longer need it.

Table of Contents

To allow an app through the Windows 11 firewall, open Windows Security > Firewall & network protection > Allow an app through firewall. Add or select the app, then enable it only for the network profiles it needs. You will normally need administrator permission to change these settings.

A firewall exception allows matching network traffic; it does not exempt a program from antivirus scans. Add an exception only for a trusted app whose connection requirements you understand. Keep the firewall enabled.

Allow an app using Windows Security

  1. Open Start, search for Windows Security, and open it.
  2. Select Firewall & network protection.

How to allow applications to access the Windows 11 firewall. Picture 1

Select Allow an app through firewall to open the allowed-apps list.

How to allow applications to access the Windows 11 firewall. Picture 2

Click Change settings and approve the administrator prompt if you are authorized to manage this PC. Find the app and choose the required profiles. If it is missing, select Allow another app > Browse, choose its actual executable (.exe), and click Add.

How to allow applications to access the Windows 11 firewall. Picture 3

  • Private: applies when the connection is classified as a trusted private network.
  • Public: applies on public-profile connections, including many shared or unfamiliar networks. Enable this only when the app genuinely needs incoming connections there.
  • Domain: applies to a domain-authenticated network, typically managed by an organization.

Click OK, reopen the app, and test the feature that was blocked. The profile describes the connection’s Windows classification, not simply whether you are physically at home or work. TipsMake’s Windows Security overview explains the protection panels.

Create an app rule with PowerShell

Use PowerShell when you need a repeatable rule or more control. Open Start, search for PowerShell, and select Run as administrator.

How to allow applications to access the Windows 11 firewall. Picture 4

The example below allows inbound traffic for one executable on the Private profile. Replace the example path with the full path of your trusted app; keep the quotation marks if the path contains spaces.

New-NetFirewallRule -Name "ExampleApp-Private-Inbound" -DisplayName "Example app - Private inbound" -Direction Inbound -Program "C:Program FilesExampleAppapp.exe" -Action Allow -Profile Private

Choose the profile deliberately. An inbound rule is for traffic coming into the app; it is not a general repair for an app that cannot reach the internet. For an app intended only for local-network access, a suitable remote-address restriction can narrow the rule further. Check the developer’s requirements before selecting protocols or ports.

Inspect the rule and its app path

Get-NetFirewallRule -Name "ExampleApp-Private-Inbound" | Format-List Name,Enabled,Direction,Action,Profile
Get-NetFirewallRule -Name "ExampleApp-Private-Inbound" | Get-NetFirewallApplicationFilter

Confirm the rule is enabled, uses the intended profile, and points to the correct executable. Testing the app is still necessary: listing a rule does not prove its connection works.

How to allow applications to access the Windows 11 firewall. Picture 5

Remove the exception

Remove-NetFirewallRule -Name "ExampleApp-Private-Inbound"

Remove an exception when the app no longer needs it. In the graphical list, you can clear its profile checkboxes or remove an entry you added. Removing an inbound exception is different from creating an outbound block; see how to block a program with Windows Firewall if that is your goal.

If the app is still blocked

Check the active network profile and executable path first. An app update may change the path, an explicit block rule may apply, or an organization’s policy may prevent local exceptions. On a managed PC, contact the administrator rather than trying to override that policy.

Microsoft documents New-NetFirewallRule and its parameters and the risks of firewall exceptions.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.