sodcalculator

08 Everyday Math

Firewall Settings Windows 10: How to Use Them

Guide 08-64703 · Updated · Step by step

To manage firewall settings in Windows 10, open the Windows Security app, go to Firewall & network protection, and select the active network profile (Domain, Private, or Public) to turn the firewall on or off, or to adjust advanced rules. This guide explains each setting, how to configure them safely, and what to do when an app is blocked.

What the Windows 10 Firewall Does

The Windows Defender Firewall is a built-in host-based filter that monitors incoming and outgoing network traffic based on a set of rules. It blocks unsolicited inbound connections by default, which helps protect your PC from worms, remote exploits, and unauthorized access attempts. Outbound traffic is generally allowed unless a rule explicitly blocks it, though you can create outbound rules to restrict specific programs.

The firewall works alongside Windows Defender Antivirus, but they are separate features. The firewall does not scan files for malware; it only controls network communication. If a program needs to accept connections from the internet (like a game server, remote desktop tool, or a file-sharing app), you must create an inbound allow rule or the firewall will silently drop those packets.

Where to Find Firewall Settings in Windows 10

There are three main ways to open the firewall settings:

  • Windows Security app: Click the Start button, type “Windows Security,” and open it. Then select “Firewall & network protection.”
  • Control Panel: Open Control Panel, go to “System and Security,” then “Windows Defender Firewall.” This shows the classic view with more detailed options.
  • Command line: Press Win+R, type wf.msc, and press Enter to open the Windows Defender Firewall with Advanced Security console, which is used for creating and editing rules.

Most everyday changes are done in the Windows Security app, while advanced rule management happens in the wf.msc console. The Control Panel version is a middle ground, offering quick toggle options and notification settings.

Understanding Network Profiles: Private vs. Public

Windows 10 assigns a network profile to each connection: Domain (for workplace networks), Private (for home or trusted networks), and Public (for cafes, airports, or any untrusted Wi-Fi). The firewall applies different rules based on the profile.

  • Public: The most restrictive. Inbound connections are blocked unless explicitly allowed. This is the default for new Wi-Fi connections and is recommended when you are away from home.
  • Private: Allows more inbound traffic, such as file sharing and device discovery, which is useful on your home network. Windows asks you to confirm when you connect to a new network whether you trust it.
  • Domain: Controlled by your organization’s policies. On a home PC, this profile is rarely used.

To change the profile for a connection, go to Settings > Network & Internet > Status, click “Properties” under your active connection, and select “Private” or “Public” under Network profile. The firewall then applies the corresponding rules.

How to Turn the Firewall On or Off

To toggle the firewall for a specific profile:

  1. Open Windows Security and select “Firewall & network protection.”
  2. Click the network profile you want to change (e.g., “Private network”).
  3. Under “Windows Defender Firewall,” switch the toggle to On or Off.
  4. If you turn it off, you’ll see a warning that your device may be vulnerable. You can also check the box to block all incoming connections, including those in the allowed list, which is useful when you’re on a public network and want extra caution.

Turning the firewall off entirely is rarely necessary. Instead, use the “Block all incoming connections” option, which still lets you browse the web and send emails but blocks any unsolicited inbound traffic. Only disable the firewall temporarily for troubleshooting, and re-enable it immediately after.

Allowing an App Through the Firewall

When a program needs to accept incoming connections, Windows may show a dialog asking you to allow access. If you missed that prompt or need to change it later:

  1. In Windows Security, click “Allow an app through the firewall.”
  2. Click “Change settings” (you need administrator rights).
  3. Click “Allow another app” and browse to the executable file (e.g., game.exe).
  4. Check the boxes for Private and/or Public, depending on where you’ll use the app.
  5. Click OK.

Be cautious: only allow apps you trust. A malicious program could use this to open a backdoor. If an app is already listed, you can uncheck it to block it. For more granular control, use the Advanced Security console (wf.msc) to create custom inbound/outbound rules with specific ports, IP addresses, and protocols.

Common Problems and How to Fix Them

Here are frequent firewall-related issues and their solutions:

  • “Firewall settings cannot be saved” error: This usually means you don’t have administrator rights, or a third-party antivirus has disabled the Windows firewall. Run Windows Security as administrator or uninstall the third-party security suite temporarily.
  • An app is blocked even after allowing it: The app may be using a different executable (e.g., a launcher vs. the actual game). Check the firewall rule’s path and ensure it points to the correct .exe. Also, if the app uses a dynamic port range, you may need to create a rule for the whole program, not just a specific port.
  • Firewall keeps turning off: Some security software disables the Windows firewall to avoid conflicts. Check your third-party antivirus settings and re-enable Windows Defender Firewall if needed.
  • Network discovery or file sharing not working: Ensure the network profile is set to Private, and that the rules for “File and Printer Sharing” are enabled under “Allow an app through the firewall.”
  • Cannot access a network printer or shared folder: Same as above – verify the profile and enable the relevant rules. Also check that the “Network Discovery” rules are on.

If you suspect a rule is misconfigured, you can reset the firewall to its default state. In the Control Panel, click “Restore defaults” on the left sidebar. This removes all custom rules and resets everything to the out-of-box settings, which often fixes weird issues.

Comparing Windows Firewall with Third-Party Firewalls

Windows Defender Firewall is a solid, free option that covers most home users. It’s integrated with the OS, receives updates via Windows Update, and is rarely a source of performance overhead. However, it lacks some advanced features found in third-party firewalls:

  • Application control: Some third-party tools can block a program from making outbound connections unless you approve it each time, which is more interactive than Windows’ default allow-all-outbound behavior.
  • Intrusion prevention: Many paid firewalls include an IPS that detects and blocks exploit attempts, which the Windows firewall does not.
  • Traffic monitoring: Third-party firewalls often provide detailed graphs and logs of network activity, while Windows only gives basic logs via Event Viewer.

For most people, the built-in firewall is sufficient. If you use a third-party firewall, it typically disables the Windows firewall to avoid double-filtering. That’s fine, but make sure your third-party solution is active and up to date.

Safety Tips and Best Practices

  • Keep the firewall on for all profiles, especially Public. The risk of turning it off outweighs any convenience.
  • Use the “Block all incoming connections” option when on a public Wi-Fi network, even if you have allowed apps.
  • Regularly review the list of allowed apps and remove any you no longer use.
  • Do not disable the firewall to speed up your internet connection – it has negligible impact on performance.
  • If you need to open a port for gaming or a server, prefer using the “Allow an app” method rather than opening a raw port, as it’s more secure and easier to manage.
  • Keep Windows Update enabled so the firewall receives security patches.

Frequently Asked Questions

How do I check if my Windows 10 firewall is on?

Open Windows Security, go to Firewall & network protection, and look at the status for each profile. If it says “On,” the firewall is active. You can also type “wf.msc” and see the state in the overview.

Why is Windows asking me to allow an app through the firewall?

That happens when a program tries to listen for incoming connections. Windows asks for your permission to add an inbound rule. If you don’t recognize the app, click “Cancel” to block it. If it’s a game or a tool you trust, click “Allow access.”

Does the Windows firewall block outgoing traffic?

By default, no. The outbound rules are permissive – all outbound traffic is allowed unless you create a specific block rule. You can create outbound rules in the Advanced Security console to restrict programs from phoning home, but that’s advanced and can break apps if misconfigured.

What does “Block all incoming connections” do exactly?

It ignores all inbound rules, even those that allow apps. Your PC will still send outbound traffic, so you can browse the web and use email. It’s a quick way to harden your system on a public network without turning off the firewall.

Can I have two firewalls active at the same time?

Technically yes, but it’s not recommended. Two firewalls can conflict, cause network issues, and slow down your system. Most third-party security suites automatically disable the Windows firewall when installed. If you install one, let it take over.

How do I reset the Windows firewall to default settings?

Open Control Panel, go to Windows Defender Firewall, click “Restore defaults” on the left, then click “Restore defaults” again in the new window. This will remove all custom rules and settings. You’ll need administrator rights.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Everyday Math bed →