Disable Windows Firewall in Settings

The fastest way to turn off Windows Defender Firewall is through the Settings app. Open Settings by pressing the Windows key and typing "Settings", then select it. Go to Privacy & Security in the left sidebar, then click Windows Security.

Inside Windows Security, click Firewall & network protection. You will see three firewall categories: Domain networks, Private networks, and Public networks. Click each one and toggle the switch to Off. Windows will warn you that your device is unprotected — this warning is accurate, not a scare tactic.

The firewall will stay off until you turn it back on the same way. Restarting your computer does not re-enable it automatically once you have disabled it through Settings.

Key Takeaways

  • Disabling Windows Firewall through Settings turns it off for all three network types: domain, private, and public.
  • A disabled firewall removes a layer of protection against unwanted inbound connections, so only turn it off if you have a specific reason.
  • Third-party firewalls (like those built into antivirus software) may still run even after Windows Firewall is off.
  • If you disable the firewall to test a network problem, turn it back on as soon as you finish troubleshooting.

Disable Firewall for a Specific App Instead

Before you disable the entire firewall, check whether you actually need to. Many network problems are solved by allowing a single app through the firewall rather than turning the whole thing off. This keeps protection running for everything else.

Go to Privacy & Security > Windows Security > Firewall & network protection. Scroll down and click Allow an app through firewall. Click Change settings, then Allow another app. Find the program that needs access, select it, and check the boxes for the network types it should use (usually both Private and Public).

This approach solves the actual problem — a blocked app — without removing firewall protection from your entire system. If you are troubleshooting a network device or service, allowing it through the firewall first will tell you whether the firewall is actually the cause.

Turn Off Firewall Temporarily Through Command Prompt

If you need to disable the firewall quickly for testing, you can use Command Prompt. Right-click the Start menu, select Terminal (Admin) or Command Prompt (Admin), and paste this command:

netsh advfirewall set allprofiles state off

Press Enter. The firewall will turn off when ready. To turn it back on, use this command instead:

netsh advfirewall set allprofiles state on

This method is useful when you are testing a network problem and need to toggle the firewall on and off without navigating menus. However, it requires administrator access and is less visible than using Settings, so you might forget you left it off.

What Happens When the Firewall Is Off

Windows Firewall blocks inbound connections that your system did not request. When it is off, any device on your network (or the internet, if you are connected directly) can attempt to connect to your computer without the firewall stopping it. This does not mean you will when ready be hacked, but it removes a significant barrier.

Outbound connections — traffic your computer sends out — are not blocked by the firewall anyway, so disabling it does not change what your computer can reach. The risk is what can reach your computer. If you are on a home network behind a router, the router itself provides some protection, but that is not a substitute for the Windows firewall.

If you have other security software installed (antivirus, third-party firewall), it may still be running. Check your system tray to see what is active. However, Windows Firewall and a third-party firewall can sometimes conflict, so if you are running a separate firewall, you may want to disable Windows Firewall to avoid that problem.

When You Should Not Disable the Firewall

Do not disable the firewall permanently just because a program is not working. The program either needs to be allowed through the firewall (the better solution) or it has a different problem. Disabling the firewall hides the real issue instead of fixing it.

Do not disable it because a website or service tells you to. Legitimate companies do not ask you to turn off your firewall. If a website says you must disable it to use their service, that is a sign the service is not trustworthy.

Do not disable it on a public network (coffee shop, airport, library). If you must disable it for testing, do it only on your home network and only while you are actively troubleshooting.

Turn the Firewall Back On

Go back to Privacy & Security > Windows Security > Firewall & network protection. Click each network type (Domain, Private, Public) and toggle the switch to On. If you used Command Prompt, paste the command above to re-enable it.

After you turn it back on, test the network problem again to see if it was actually caused by the firewall. If the problem is gone now that the firewall is off, you know the firewall was blocking something — and the next step is to find out what and allow it through instead of leaving the firewall disabled.

Frequently Asked Questions

Will my computer get a virus if I disable the firewall?

Not automatically, but you lose one layer of protection. Your router provides some protection, and antivirus software catches malware that gets in. However, the firewall stops unwanted inbound connections before they reach your system. Disabling it increases risk, especially on public networks.

Can I disable the firewall just for one network?

Yes. In Firewall & network protection, you can toggle each network type separately. For example, you could leave it on for Public networks but off for your home Private network. This is safer than disabling it entirely.

Does disabling Windows Firewall affect my router's firewall?

No. Your router has its own firewall, which is separate from Windows Firewall. Disabling Windows Firewall does not change your router's settings. However, your router's firewall alone is not enough protection for your computer.

Why does Windows keep asking me to turn the firewall back on?

Windows Security will notify you periodically that the firewall is off. These notifications are reminders, not errors. You can dismiss them, but they will return. If you want to stop seeing them, turn the firewall back on.

What if I cannot access the Settings app to turn the firewall back on?

Use Command Prompt instead. Right-click the Start menu, select Terminal (Admin), and paste: netsh advfirewall set allprofiles state on. This will re-enable the firewall without needing the Settings app.