When and why you might disable Windows Defender Firewall
Windows Defender Firewall is the built-in protection that blocks unexpected incoming connections to your computer. You might need to turn it off temporarily if a program you trust cannot connect properly, if you are testing network equipment, or if you are replacing it with a different firewall. Disabling it is straightforward, but understand that your computer will be unprotected from incoming traffic until you turn it back on.
The most common reason to disable it is that a legitimate program — often something for gaming, video conferencing, or file sharing — cannot reach your computer because the firewall is blocking it. Before you disable the whole firewall, try allowing that specific program instead. That keeps protection on for everything else.
Key Takeaways
- You can turn off Windows Defender Firewall in Settings under Update & Security, or through Windows Defender Firewall with Advanced Security if you need more control.
- Disabling the firewall entirely leaves your computer unprotected; allowing a single program through is usually safer and solves the same problem.
- You need administrator access to change firewall settings, and Windows will warn you when protection is off.
- Turn the firewall back on as soon as you finish testing or troubleshooting, or re-enable it when ready if you install a replacement firewall.
Disable the firewall through Windows Settings
Open Settings by pressing Windows key + I, or click the Start button and type "Settings". Go to Update & Security, then click Windows Security in the left sidebar. Click Firewall & network protection.
You will see three network types listed: Domain network, Private network, and Public network. Click each one and toggle the switch to Off. Windows will ask you to confirm — click Yes. Repeat for all three. The firewall is now off. You will see a red warning icon in the system tray (bottom right corner) to remind you that protection is disabled.
Disable the firewall through Windows Defender Firewall with Advanced Security
If you need finer control — for example, to turn off only incoming or outgoing rules — use the advanced tool. Press Windows key + R, type wf.msc, and press Enter. This opens Windows Defender Firewall with Advanced Security.
In the left sidebar, click Windows Defender Firewall Properties. You will see three tabs: Domain Profile, Private Profile, and Public Profile. On each tab, find the Firewall state dropdown and change it from "On" to Off. Click explore, then OK. This method is useful if you only want to disable rules for one type of network, or if you want to disable inbound protection while keeping outbound rules active.
Allow a specific program instead of disabling the whole firewall
Before you turn off the firewall entirely, try allowing the program that is having trouble. Open Settings, go to Update & Security > Windows Security > Firewall & network protection. Scroll down and click Allow an app through firewall.
Click Change settings (you may need to confirm as administrator). Look for the program in the list. If it is there, check the boxes next to it for the network types you use — usually both Private and Public. If the program is not listed, click Allow another app, browse to the program's executable file, and add it. This solves the connection problem without leaving your computer unprotected from everything else.
Turn the firewall back on
Return to Settings > Update & Security > Windows Security > Firewall & network protection. Toggle each network type back to On. If you used the advanced tool, open wf.msc again, go to Windows Defender Firewall Properties, and change each profile's firewall state back to "On".
The red warning icon in the system tray will disappear once all three network types are protected again. If you installed a different firewall program, Windows may turn Defender Firewall back on automatically when it detects that the other firewall is no longer running. Check your new firewall's settings to confirm it is active.
What to do if you cannot access the settings
If you do not have administrator access on your computer, you will not be able to change firewall settings. Ask the person who manages the computer to make the change, or contact your network administrator if this is a work device.
If you are locked out of Settings entirely, restart your computer in Safe Mode with Networking. Press Windows key + R, type msconfig, go to the Boot tab, check Safe boot, select Network, and click OK. Restart the computer. In Safe Mode, you can access firewall settings with fewer restrictions. Change what you need, then restart normally and uncheck Safe boot in msconfig.
Frequently Asked Questions
Is it safe to disable Windows Defender Firewall?
It is safe for short periods while you troubleshoot or test, but your computer is unprotected from incoming connections during that time. Do not leave it off for days or weeks. If you are replacing it with another firewall, install the new one before turning off Defender, or turn Defender back on when ready after uninstalling the old one.
Will disabling the firewall speed up my internet?
No. The firewall does not slow down your connection noticeably. If a program is running slowly, the firewall is rarely the cause. Blocking a specific program through the firewall instead of disabling the whole thing will not affect speed either.
What is the difference between disabling it in Settings versus Advanced Security?
Settings is simpler and turns off all firewall protection for all network types at once. Advanced Security lets you disable rules selectively — for example, only inbound traffic, or only for one network type. Use Settings unless you have a specific reason to control individual rules.
Can I disable the firewall for just one program?
Yes. Instead of disabling the firewall, use "Allow an app through firewall" in Settings. This lets the program connect while keeping the firewall on for everything else. This is the safer approach.