We have separate instructions forusing the Windows 11 Firewall.
All those firewall-related tasks are available throughFirewall & internet protection.
As youll see here, you could also choose both.

Open theStartmenu, then search for and selectWindows Security.
SelectFirewall & online grid protection.
You’ll arrive on the firewall page.

Near the bottom are a few options displayed less prominently in smaller font.
SelectAllow an app through firewall.
PressChange prefs, and accept the prompt or pop in an administrator password if asked.

Locate the app you want to allow through the firewall.
It wont have a check mark next to it.
grab the checkbox(es) to allow the entry.

There are two optionsPrivateandPublic.
Start with Private only and select Public later if you dont get the results you want.
These include Microsoft Edge and Microsoft Photos, and necessary features like Core Networking and Windows Defender Security Center.

Other Microsoft apps likeCortanamight require you to give your explicit permissions when you first use them, though.
This approval opens the required ports in the firewall, among other things.
it’s possible for you to withdraw your consent to bypass the firewall, however.

Locate the app you want to block.
It will have a check mark next to it.
grab the checkbox(es) to disallow the entry (i.e., you’reremovingthe checkboxes).
There are two options PrivateandPublic.
PressOKto save and exit.
Why Are Firewalls Important?
When a threatening fire reaches the firewall, the wall maintains its ground and protects whats behind it.
Windows Defender does the same thing, except with dataor more specifically,data packets.
If it deems the data acceptable, it lets it pass.
Data that could be a threat to the stability of the computer or the information on it is denied.
It’s a line of defense, just as a physical firewall is.
This, however, is a very simplistic explanation of a very technical subject.