How To Allow An App Through Windows Firewall In Windows 11 (2026)
When Windows Firewall blocks an app you trust, you can allow it without turning the firewall off.
The setting lives in the Windows Security app, and Microsoft gives the same steps for Windows 11 and Windows 10.
The short version is to open Allow an app through firewall, select Change settings, and tick the app.
Quick answer
| Goal | Where to go |
|---|---|
| Allow an app | Windows Security > Firewall & network protection > Allow an app through firewall > Change settings |
| Allow an app that is not listed | Allow another app, then enter the app’s path |
| Stop allowing an app | Clear its check box and select OK |
| Open or close a port | Firewall & network protection > Advanced settings > Inbound Rules |
Allow an app through the firewall
- Open the Windows Security app.
- Select Firewall & network protection.
- Select Allow an app through firewall.
- Select Change settings, and confirm or enter an administrator password if Windows asks.
- Select the check box next to the app you want to allow.
- If the app is not on the list, select Allow another app and enter its path.
Microsoft’s page does not list a separate confirmation button for adding an app, so check the dialog on your screen for how to finish.
Why allow an app instead of turning the firewall off
Microsoft says that if a needed app is blocked, you should allow it through the firewall rather than turn the firewall off.
Turning the firewall off may make your device more vulnerable to unauthorized access.
If you really need the firewall off for a moment, see our guide to turning off the Windows 11 firewall.
Stop allowing an app
- Go back to Windows Security > Firewall & network protection > Allow an app through firewall.
- Select Change settings.
- Clear the check box next to the app.
- Select OK.
Microsoft recommends removing apps you no longer use.
Allow an app or open a port
| Method | Risk level | How it works |
|---|---|---|
| Allow an app | Less risky | The app’s required ports open only when needed |
| Open a port | More risky | The port stays open until you close it |
An open port allows traffic into or out of your device, which can give hackers or malware a way to reach your files or spread to other devices.
That is why Microsoft calls allowing an app generally the safer choice.
Open a port
- Open Windows Security and select Firewall & network protection.
- Select Advanced settings, and confirm or enter an administrator password if asked.
- Select Inbound Rules.
- Under Actions, select New Rule… and follow the instructions.
Close a port
- Open Advanced settings from Firewall & network protection.
- Select Inbound Rules.
- Select the rule you want to turn off.
- Under Actions, select Disable Rule.
Microsoft warns that incorrect rule changes in advanced settings can make your system more vulnerable or stop apps from working.
Most people never need the advanced settings, according to the same page.
Private, public and domain networks
| Profile | Meaning |
|---|---|
| Private (trusted) | Other devices on the network can see your device and may connect to it, such as a home network |
| Public (untrusted) | Strangers’ devices should not see or connect to yours, such as coffee shop Wi-Fi |
| Domain (workplace) | Named by Microsoft, with no further detail |
Stricter security controls generally apply on public networks than on private ones.
Check the Incoming connections box
On the same screen, Incoming connections has a box called Blocks all incoming connections, including those in the list of allowed apps.
When that box is checked, the allowed apps list is ignored and everything incoming is blocked.
If an app you allowed still does not work, check that this box is not ticked.
Choose when the firewall tells you about a blocked app
- In Windows Security, select Settings.
- Select Manage notifications.
- Under Firewall and network protection, choose whether to be told when Windows Firewall blocks a new app.
You can set this separately for the domain network, the private network and the public network.
Microsoft’s page does not give the exact on and off labels, so use the wording on your screen.
Restore the firewall to default
If someone or something changed firewall settings and caused problems, Restore firewalls to default on the Firewall & network protection page resets them to how they were when you first got the PC.
Any policies applied by your organization are applied again afterward.
If you cannot change the settings
If your work or school manages the device, policy settings may stop you changing firewall settings.
In that case, contact your administrator.
The Network and Internet troubleshooter on the same page can also try to fix general connection problems.
If Windows warns about a file or app itself, see how SmartScreen and Smart App Control work.