Skip to content
Follow
Windows

How to Disable Windows Firewall on Windows 11

Richard
Written by
Richard
Oct 21, 2021 Updated Sep 15, 2026 3 min read
How to Disable Windows Firewall on Windows 11
How to Disable Windows Firewall on Windows 11

Windows Defender Firewall (the built-in security tool that blocks unsafe network traffic) stops filtering your internet connection on Windows 11 when you turn it off. Disabling this protection helps you fix stubborn connection problems or run specific software that gets blocked by mistake.

Advertisement

You need to turn the firewall back on as soon as you finish troubleshooting because leaving it off removes a key layer of defense against online threats.

⚡ Quick Answer

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.

Advertisement

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)

Turning off protection through the Settings app lets you disable Windows Firewall for specific network connections without needing advanced tools. Open the Settings app, head to Privacy & security, and access the Windows Security menu to turn off the firewall for domain, private, or public networks.

1. Press the Win+I on your keyboard to open Settings.

Windows 11 Start menu showing Settings option
windows 11 start settings

2. Go to Privacy & security > Windows Security.

Advertisement
Windows Security settings in Windows 11
windows 11 windows security

3. Click Open Windows Security.

Opening Windows Security in Windows 11
windows 11 open windows security 1

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).

Firewall and network protection settings in Windows 11
windows 11 firewall and network protection

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

Turning off Windows Defender Firewall in Windows 11
windows defender firewall turn off on windows 11

Method 2Using Command Prompt (Advanced)

Running a quick command in Command Prompt lets you disable Windows Firewall across all network profiles at once. Open the console with administrator rights and execute the netsh command to turn off firewall protection instantly across your system.

Advertisement

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:

Advertisement
netsh advfirewall set allprofiles state on

Method 3Using PowerShell

Administrative rights are required for this action.

  1. Right-click the Start button and select Terminal (Admin) or PowerShell (Admin).
  2. Run this command to disable the firewall:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Method 4Using Group Policy Editor

Using the Group Policy Editor (a tool for configuring system settings) lets you disable Windows Firewall on Windows 11 Pro and Enterprise editions. Open the policy console via the Run dialog box to turn off firewall rules across your entire system.

Advertisement
  1. Press Windows key + R, type gpedit.msc, and hit Enter.
  2. Navigate to: Computer Configuration\Administrative Templates\Network\Network Connections\Windows Defender Firewall\Standard Profile.
  3. Double-click 'Windows Defender Firewall: Protect all network connections' and set it to Disabled.

Best Practices: Allowing Apps vs. Disabling Firewall

Allowing an app through Windows Firewall provides a much safer alternative to turning off protection completely. Permitting trusted programs to communicate through the barrier keeps your computer secure while letting your software work properly.

Advertisement

1. Go to Firewall & network protection and click Allow an app through the firewall.

Allowing an app through Windows Firewall on Windows 11
allow an app through firewall windows 11

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

Adding another app to Windows Firewall exceptions
add another app to windows firewall

Summary

Leaving the Windows Firewall disabled introduces significant security risks, so turn protection back on immediately after finishing work.

Can I disable the firewall for specific networks only?

Yes. Windows lets you manage the Domain, Private, and Public profiles separately. You can turn off the firewall for a Private network while leaving it active for Public networks. This way, your data stays protected when you connect to untrusted Wi-Fi hotspots in public places.

Was this guide helpful?

📬 Get new Windows tips in your inbox
One email when we publish something worth your time. No spam, unsubscribe anytime.
Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

3212 articles → Twitter
Advertisement

📚 Related Tutorials

How to Activate Microsoft Defender Antivirus in Windows 11
Windows How to Activate Microsoft Defender Antivirus in Windows 11
How to Turn On or Off Microsoft Defender Firewall in Windows 11
Windows How to Turn On or Off Microsoft Defender Firewall in Windows 11
How to Reset Windows Security App in Windows 11
Windows How to Reset Windows Security App in Windows 11
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *