Why you might need to disable your firewall temporarily
You disable a firewall when a program you trust cannot connect to the internet or your local network because the firewall is blocking it. This happens most often when you install new software, connect to a work network for the first time, or troubleshoot a connection problem. The firewall is doing its job — it blocks unknown programs — but sometimes that means blocking something you actually want to use.
Disabling the firewall is a temporary step, not a permanent solution. You turn it off long enough to test whether the firewall is the problem, then turn it back on. Leaving it off makes your computer vulnerable to malware and unauthorized access, so this is not a setting you change and forget.
If a program keeps getting blocked, the better approach is to add that program to your firewall's exceptions list rather than disable the whole firewall. That way the program can work while everything else stays protected.
Key Takeaways
- Disable your firewall only to test whether it is blocking a program you trust, then turn it back on immediately after.
- On Windows, open Windows Defender Firewall in Settings and toggle off the firewall for the network type you are using (usually "Private network").
- On Mac, go to System Settings > Network > Firewall and click "Turn Off" — you may need to unlock the settings first by clicking the lock icon.
- If a program is blocked repeatedly, add it to your firewall's exceptions or allowed apps list instead of disabling the entire firewall.
- Turn your firewall back on as soon as you finish testing; leaving it off puts your computer at risk.
Disable the firewall on Windows
On Windows 10 and 11, the firewall is called Windows Defender Firewall and lives in Settings. Open Settings, then search for "firewall" in the search box at the top. Click "Windows Defender Firewall" when it appears.
You will see two network types listed: "Private network" and "Public network". Private network is your home or work network where you trust the other computers. Public network is coffee shops and airports. Turn off the toggle next to whichever one you are currently on. If you are at home, that is almost always "Private network".
A warning will appear asking you to confirm. Click "Yes". The firewall for that network type is now off. Test your program. Once you confirm the program works, go back to the same screen and turn the toggle back on. Do not skip this step.
Disable the firewall on Mac
On Mac, the firewall is in System Settings. Click the Apple menu in the top left corner, then "System Settings". Scroll down the left sidebar and click "Network".
In the Network window, look for "Firewall" in the right panel. You may need to scroll down to see it. Click "Firewall Options" (not "Firewall Status"). A small window will open. If the settings are grayed out, click the lock icon at the bottom left of the window and enter your password to unlock them.
Click the "Turn Off" button. Your Mac's firewall is now off. Test your program. When you are done, go back to the same window and click "Turn On" to restore protection.
Add a program to your firewall exceptions instead
If you find yourself disabling the firewall repeatedly for the same program, add that program to your firewall's allowed list instead. This lets the program through while keeping everything else protected.
On Windows, go back to Windows Defender Firewall and click "Allow an app through firewall" on the left side. Click "Change settings" if the button is grayed out. Look for your program in the list. If it is there, check the box next to it. If it is not there, click "Allow another app" and browse to find the program's executable file (usually a .exe file).
On Mac, go to System Settings > Network > Firewall Options and look for "Firewall" in the left sidebar. Click "Options" next to the firewall setting. You can add specific apps to the "Allow incoming connections" list. Click the plus sign, navigate to your Applications folder, and select the program you want to allow.
What to do if you cannot find the firewall setting
If you have a third-party antivirus program installed (Norton, McAfee, Kaspersky, Bitdefender), it may have replaced Windows Defender Firewall with its own firewall. Look for your antivirus program in the system tray (the icons in the bottom right corner of your screen on Windows, or the menu bar on Mac) and open it. The firewall setting will be inside that program, not in Windows Settings or System Settings.
On Windows, you can also check whether Windows Defender Firewall is actually running. Open Settings, search for "Windows Defender Firewall", and look at the top of the window. If it says "Windows Defender Firewall is managed by your organization" or "Windows Defender Firewall is managed by Group Policy", your workplace or school controls the firewall and you may not be able to disable it yourself. Contact your IT department.
Why your program might still be blocked after disabling the firewall
If a program still cannot connect after you disable the firewall, the problem is not the firewall. It could be your internet connection, your router settings, the program itself, or a different security tool. Try restarting both the program and your computer, then check whether the program works. If it still does not, the firewall was not the cause.
Some programs also need permission to access your camera, microphone, or location. On Windows, go to Settings > Privacy & Security and check whether the program is allowed to use those features. On Mac, go to System Settings > Privacy & Security and look for the program in the list of apps requesting access.
Frequently Asked Questions
How long can I safely leave my firewall off?
You should not leave it off at all. Turn it back on immediately after you finish testing. Even a few minutes without a firewall leaves your computer exposed to malware and network attacks. If you need the firewall off for longer than a few minutes, something else is wrong and you should investigate the real cause instead.
Will disabling the firewall affect my antivirus program?
No. Your antivirus program and your firewall are separate tools. Disabling the firewall does not turn off antivirus scanning. However, you lose the network protection the firewall provides, so you are still more vulnerable even with antivirus running.
Can I disable just one rule in the firewall instead of the whole thing?
Yes, and that is actually better than disabling the entire firewall. On Windows, go to Windows Defender Firewall > Advanced Settings and look for the specific rule that is blocking your program. On Mac, you cannot edit individual rules, but you can add the program to the allowed apps list instead, which achieves the same result.
What if I forget to turn the firewall back on?
Windows will remind you with a notification in the system tray. Mac does not send a reminder, so set a phone alarm or write yourself a note. If you realize hours later that you left it off, turn it back on immediately. The longer it stays off, the longer your computer was unprotected.