How to Disable Windows Firewall on Windows 11
Windows Defender Firewall is the built-in security guard on Windows 11 that blocks unsafe incoming and outgoing network traffic. Turning off this firewall stops Windows from filtering your internet connection, which helps when you need to fix stubborn connection problems or run specific software.
You should only disable the firewall temporarily because leaving it off removes a key layer of defense against online threats. Make sure to turn the protection back on as soon as you finish troubleshooting.
Navigate to Windows Security, then Firewall & network protection. Click your active network profile and toggle Microsoft Defender Firewall to Off. Remember to re-enable it as soon as possible.
How to Check if Windows Firewall is Active
Checking the current status happens right inside Windows Security Center. A green checkmark on the shield icon means protection remains active, while a red ‘X’ indicates the firewall is turned off.
Method 1Using Windows Settings (Standard Method)
Disabling the Windows Firewall on Windows 11 works through the Settings app as well. This standard method requires a few clicks to shut down protection for specific network connections.
1. Press the Win+I on your keyboard to open Settings.

2. Go to Privacy & security > Windows Security.

3. Click Open Windows Security.

4. Select Firewall & network protection. Three profiles appear on screen: Domain profile (used on workplace networks), Private profile (designated for trusted home networks), and Public profile (built for untrusted public Wi-Fi hotspots).

5. Click the active network and toggle the Microsoft Defender Firewall switch to Off.

Method 2Using Command Prompt (Advanced)
Command Prompt offers a faster way to turn off the Windows Firewall on Windows 11. Command-line tools allow direct management of the firewall state for users comfortable with text-based interfaces.
The netsh advfirewall command handles these settings efficiently.
1. Search for cmd in the Start menu, right-click it, and select Run as administrator.
Type this command and press Enter to disable the firewall for all profiles:
netsh advfirewall set allprofiles state off
3. To turn it back on, use:
netsh advfirewall set allprofiles state on
Method 3Using PowerShell
Administrative rights are required for this action.
- Right-click the Start button and select Terminal (Admin) or PowerShell (Admin).
- Run this command to disable the firewall:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
Method 4Using Group Policy Editor
Windows 11 Pro and Enterprise editions include the Group Policy Editor for managing the Windows Firewall. This advanced tool provides granular control, letting administrators disable protection across specific network profiles or the entire operating system.
- Press Windows key + R, type
gpedit.msc, and hit Enter. - Navigate to:
Computer Configuration\Administrative Templates\Network\Network Connections\Windows Defender Firewall\Standard Profile. - Double-click 'Windows Defender Firewall: Protect all network connections' and set it to Disabled.
Best Practices: Allowing Apps vs. Disabling Firewall
Creating specific app exceptions provides a much safer alternative to disabling the Windows Firewall completely. Permitting trusted programs to communicate through the barrier keeps the system secure while maintaining full application functionality.
1. Go to Firewall & network protection and click Allow an app through the firewall.

2. Click Change settings (administrative privileges are required) and select Allow another app to add the program.

Summary
Leaving the Windows Firewall disabled introduces significant security risks, so always turn protection back on immediately after finishing work.
No comments yet — be the first to share your thoughts!