Windows Firewall Explained: Settings You Should Check on Windows 11

What Microsoft Defender Firewall actually does, what Public and Private networks mean, and how to allow or block an app safely.

Microsoft Defender Firewall decides which network connections can reach your PC. It is on by default and, for most people, needs no changes. But a few settings are worth checking, especially if you use public Wi-Fi.

Windows Firewall Explained: Settings You Should Check on Windows 11

What the firewall does (and does not do)

  • It blocks unsolicited incoming connections, such as someone on the café Wi-Fi probing your shared folders.
  • By default it allows outgoing traffic, so it does not stop malware that is already running from phoning home. That is the antivirus’s job.
  • It works alongside your router’s firewall; it does not replace it.

1. Make sure the firewall is on

Open Windows Security › Firewall & network protection. Domain, Private and Public networks should all say Firewall is on. If one is off, select it and turn it on.

Windows Security Firewall and network protection showing firewall on for all networks

2. Set public networks to Public

Public profile hides your PC from other devices. In Settings › Network & internet › Wi-Fi › [network], choose Public network (Recommended) for anywhere you do not trust, including hotels, airports and cafés. Use Private only at home when you need file or printer sharing.

3. Allow an app through the firewall

  1. In Firewall & network protection, select Allow an app through firewall.
  2. Select Change settings, then tick the app and choose Private only, unless it must work on public networks.
  3. If the app is missing, select Allow another app and browse to its .exe.
Allowed apps list with Private and Public network checkboxes

4. Review apps you allowed in the past

Games and file-sharing apps often add themselves with access on Public networks. Untick Public for anything that does not need it, and remove apps you no longer use.

5. Block an app from the internet

Open Advanced settings (Windows Defender Firewall with Advanced Security). Choose Outbound Rules › New Rule › Program, browse to the app, select Block the connection and apply it to all profiles.

6. Reset the firewall

If rules are a mess or something stopped connecting, select Restore firewalls to default. This removes all custom rules.

Do you need a third-party firewall?

Not usually. The built-in firewall plus the protections in our security checklist cover home users. Third-party firewalls mainly add easier outbound control.

More guides

Recently published on appsforwin10.