Windows Firewall settings live in the Windows Security app under Firewall & network protection. Open it to see whether Microsoft Defender Firewall is on for your current network, which can be a domain, private or public network. If an app is blocked, allow that app through rather than turning the firewall off. This guide follows Microsoft’s support pages, checked on 30 November 2026.
What Windows Firewall does
Microsoft says Windows Firewall filters network traffic and blocks unauthorised access, allowing or restricting connections based on criteria such as IP addresses, network ports and application program paths. You can view and manage its status from the Windows Security app on Windows 11 and Windows 10.
Check that it is on
- Open the Windows Security app and select Firewall & network protection.
- Windows Security shows which network type you are connected to. Select Domain network, Private network or Public network to see that profile.
- Under Microsoft Defender Firewall, confirm the setting is On.
Microsoft warns that turning the firewall off could make your device more vulnerable to unauthorised access. If your device is managed by an organisation, policy settings may stop you changing the firewall.
Private and public networks
Microsoft explains the difference as whether other devices on the same network may see, and maybe connect to, your device. A home network is a private network where you trust the devices on it. The Wi-Fi at a cafe is a public network, where most devices belong to strangers. As a rule, Windows applies stricter controls on a public network than on a private one.
Allow an app through the firewall
If the firewall blocks an app you need, Microsoft’s page on the risks of allowing apps through Windows Firewall describes two ways to fix it, both risky. Adding an app to the allowed list is less risky than opening a port.
- In Firewall & network protection, select Allow an app through firewall.
- Select Change settings. You may be asked for an administrator password.
- Tick the box beside the app, or select Allow another app and enter its path.
- To remove an app later, clear its box and select OK.
Microsoft’s advice is to allow an app or open a port only when you really need to, remove entries you no longer need, and never allow an app you do not recognise. It says an allowed app opens the ports it needs only when needed, while an open port stays open until you close it.
Other settings on the page
- Blocks all incoming connections: a checkbox under Incoming connections. Microsoft says it ignores the allowed apps list and blocks everything, which increases security but may stop some apps working.
- Firewall notification settings: controls how many alerts you see when the firewall blocks something.
- Advanced settings: opens the classic Windows Defender Firewall, where you can create inbound or outbound rules and see logs. Microsoft says most people will not need it, because incorrect rules can weaken security or break apps.
- Restore firewalls to default: resets changes that are causing problems. Any organisation policies are reapplied.
- Network and Internet troubleshooter: tries to diagnose general connection problems automatically.
Where the firewall fits
A firewall is one layer of protection. It works alongside the other Windows Security features, such as tamper protection and Smart App Control, and does not replace virus protection. Our antivirus guide explains when built-in protection is enough.





