Microsoft’s built-in firewall, Windows Defender Firewall, is enabled by default on Windows 10 and 11, and you can adjust its settings to control which programs can communicate over your network. This guide explains where to find the settings, how to allow or block apps, and how to troubleshoot common issues—without needing third-party software.
What Is Windows Defender Firewall?
Windows Defender Firewall is a software-based security layer that filters incoming and outgoing network traffic based on a set of rules. It was introduced in Windows XP SP2 and has been a standard component ever since. Its primary job is to block unauthorized access to your PC while allowing legitimate traffic—such as web browsing, email, and online gaming—to pass through.
The firewall works by inspecting each data packet and comparing it against its rule set. Rules can be defined for specific programs, ports, or IP addresses. By default, it blocks all unsolicited incoming traffic, but it allows outgoing traffic unless a rule says otherwise. This default behavior is safe for most users, but you may need to change settings when installing software that requires network access, like a game server or a printer-sharing utility.
How to Access Firewall Settings
There are several ways to open the firewall settings in Windows 10 and 11. The quickest method is to type firewall into the Start menu search and select Windows Defender Firewall from the results. Alternatively, you can navigate through the Control Panel:
- Press Windows + R, type
control, and press Enter. - Click System and Security (if in Category view).
- Click Windows Defender Firewall.
From the main firewall window, you’ll see the status for each network profile (Domain, Private, and Public). You can turn the firewall on or off for each profile, but it’s strongly recommended to keep it on for all profiles. The left sidebar has links to advanced settings, allowing you to create custom inbound and outbound rules.
Allowing an App Through the Firewall
When a program needs to receive incoming connections, Windows usually prompts you with a dialog asking whether to allow access. If you missed that prompt, or you need to change the decision later, follow these steps:
- Open the Windows Defender Firewall window.
- Click Allow an app or feature through Windows Defender Firewall.
- Click Change settings (you may need administrator rights).
- Scroll through the list of installed apps. Check the box for the app you want to allow, and then check the Private and/or Public columns depending on where you need it to work.
- If the app isn’t listed, click Allow another app… and browse to the executable file.
Be cautious when allowing apps on the Public profile (e.g., on a coffee shop Wi-Fi), as this exposes the app to other devices on that network. For most home use, checking only Private is safer.
Common Problems and Fixes
Firewall settings can cause frustrating issues, such as programs not connecting to the internet or multiplayer games failing to find sessions. Here are typical problems and their solutions:
- App blocked despite being allowed: Check if the app has its own firewall rule in Advanced Settings. Sometimes a rule with a higher priority is blocking it.
- Firewall settings grayed out: This usually means you don’t have administrator privileges. Log in with an admin account or ask your system administrator to change the settings.
- Network discovery not working: Enable the rules for “Network Discovery” and “File and Printer Sharing” under the allowed apps list.
- Firewall won’t turn off: Group Policy or third-party security software can override your settings. Check if another antivirus is managing the firewall.
- Ports blocked: If a specific port is needed (e.g., port 25565 for Minecraft servers), you can create an inbound rule in Advanced Settings to open it.
Advanced Settings: Inbound and Outbound Rules
For granular control, use the Windows Defender Firewall with Advanced Security console. You can open it by typing wf.msc in the Run dialog (Windows + R). This tool lets you create rules that allow or block connections based on program, port, protocol, or IP address.
To create a new inbound rule, click Inbound Rules in the left pane, then New Rule… in the right pane. You’ll choose the rule type (Program, Port, Predefined, or Custom). For a port rule, specify TCP or UDP and the port number. Then decide whether to allow the connection, allow it only if secured, or block it. Finally, choose which profiles the rule applies to.
Outbound rules work similarly but control traffic leaving your computer. By default, all outbound traffic is allowed, so you only need outbound rules if you want to block certain programs from phoning home or accessing the internet.
Resetting Firewall to Default
If you’ve made many changes and something is broken, you can restore the firewall to its original state. In the Windows Defender Firewall window, click Restore defaults in the left sidebar. This will reset all rules to the factory settings, which typically fixes misconfiguration issues. Note that this will also remove any custom rules you created, so you may need to re-add them.
To restore defaults, you must have administrator rights. After clicking, confirm the warning, and the firewall will be reset. It’s a good idea to do this after removing third-party security software that might have left behind conflicting rules.
Firewall vs. Antivirus: What’s the Difference?
Many people confuse the firewall with antivirus software, but they serve different purposes. The firewall acts as a gatekeeper, controlling what enters and exits your network. Antivirus, on the other hand, scans files and programs for known malware. Windows Defender Firewall is built into Windows, and Windows Security includes a separate antivirus component called Microsoft Defender Antivirus. Both are enabled by default, and together they provide a solid baseline of protection.
You don’t need to turn off the firewall to use a third-party antivirus—most modern security suites include their own firewall, which will automatically disable the Windows one to avoid conflicts. However, if you use a standalone antivirus without a firewall, keep the Windows firewall enabled.
Frequently Asked Questions
How do I check if my firewall is on?
Open the Windows Defender Firewall window. Under each network profile, you’ll see “On” or “Off.” If it’s off, click “Turn Windows Defender Firewall on or off” and select “Turn on Windows Defender Firewall” for the profiles you want.
Why is Windows asking me to allow a program?
When a program tries to listen for incoming connections, Windows shows a security alert. This is normal for apps like game servers, remote desktop tools, or media streaming software. You can choose to allow access on private networks, public networks, or both.
Can I use a third-party firewall instead?
Yes, you can install a third-party firewall like GlassWire or ZoneAlarm, but you should disable the Windows firewall to avoid conflicts. Most paid security suites include a firewall, so you may already have one.
Does the firewall block outgoing traffic?
By default, no. Windows Defender Firewall allows all outgoing traffic unless you create an outbound block rule. If you want to block a specific app from accessing the internet, you can create an outbound rule for it.
Why can’t I change firewall settings?
You need administrator rights. If you’re already an admin, check if Group Policy or third-party security software is restricting changes. In some cases, your organization may have locked down the settings.
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
- Network Reset Manually in iPhone: Step-by-Step Guide
- Network Reset Moto G 5G: Step-by-Step Guide
- Network Reset MacBook: Fix Wi-Fi & Internet Issues
- Network Reset Link: How to Use It
- Network Reset iPhone 16: Complete Guide
- Network Reset iPhone 17 Pro Max: Fix Steps