How to Allow Apps Through Microsoft Defender Firewall in Windows 11
Windows includes a built-in security tool called Microsoft Defender Firewall. It acts like a gatekeeper for your computer. It checks all data coming in and going out to keep your PC safe from hackers and viruses.
Sometimes, this gatekeeper is too strict. It might block a program you trust from connecting to the internet. Instead of turning off your security, you can simply open a door for that specific app.
Why use this?
You should do this when a safe app, like a game or a work tool, cannot connect to the internet even though you are online. This is much safer than turning off your entire firewall.
What happens when done?
Once you finish these steps, your chosen app will be able to communicate through the firewall. Your computer remains protected by the firewall for all other programs.
How to allow an app through the firewall
You can manage this through your main Windows settings. Follow these steps:
- Open the Settings app. You can press the Windows key + I on your keyboard at the same time.

- In the menu on the left, click Privacy & security. Then, click the Windows Security box on the right.

- Click the button that says Open Windows Security.

- A new window will open. Click on Firewall & network protection in the left menu.
- Look for the link that says Allow an app through the firewall and click it.

- Click the Change settings button at the top. Note: This step requires administrator privileges.

- Click the Allow another app… button at the bottom. Then, click Browse to find the program on your computer.

- Locate the app’s file (usually in a folder like C:\Program Files\YourApp), select it, and click Open.

- Click the Add button to save your changes.
Advanced Security and Troubleshooting
If the basic method fails, you may need to use Windows Defender Advanced Security. This tool allows you to create specific Inbound Rules and Outbound Rules. You can define if an app needs specific port forwarding to function correctly.
To verify your changes, use the command line. Run Command Prompt as an administrator and type: netsh advfirewall show allprofiles. This displays your current network security settings.
Summary
Microsoft Defender Firewall is a vital tool that keeps your PC safe from online threats. Instead of turning it off, which leaves your computer vulnerable, you should allow specific apps to pass through. You can do this by using the Windows Security settings menu. Keeping your firewall on is the best way to stay protected while using your favorite software.
Avoid disabling your firewall unless you have installed other security software that conflicts with it. For more information, you can read about disabling or turning off Microsoft Defender Firewall and how to protect against lock your computer for ransom.
Why is the ‘Change settings’ button greyed out?
The button is greyed out because you do not have administrator privileges. You must be logged into an account with administrative rights to modify firewall rules. If you are on a work computer, your IT department may have locked these settings to prevent unauthorized changes to network security.
How do I remove an app from the allowed list?
Go back to the ‘Allow an app through the firewall’ screen and click ‘Change settings’. Find the app in the list, click on it to highlight it, and then click the ‘Remove’ button. This will immediately block the app from communicating through the firewall again.
Is it safe to allow all apps through the firewall?
No, it is not safe. Allowing all apps through the firewall effectively disables your network protection, leaving your computer vulnerable to unauthorized inbound traffic. Only create exceptions for specific, trusted applications that require internet access to function properly for your work or entertainment.
Was this guide helpful?
Leave a Reply