Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

In Windows 10, open Start → Settings → Update & Security → Windows Security → Firewall & network protection, choose the network profile, then switch Microsoft Defender Firewall on or off. Keep it on in normal use; if one app is blocked, allow that app rather than disabling the firewall. Windows 10 standard support ended on October 14, 2025, so a firewall does not replace moving to a supported Windows release. Microsoft’s Windows 10 support notice explains the end date.

What the firewall does—and what it does not do

Microsoft Defender Firewall filters network traffic and can allow or restrict connections based on details such as IP addresses, ports, and application paths. It is a network-protection layer, separate from Microsoft Defender Antivirus, which scans for malware. Turning the firewall off does not itself switch off antivirus scanning or Windows Security as a whole. The firewall’s settings are in Firewall & network protection, not Virus & threat protection. Microsoft’s firewall guide and its antivirus FAQ distinguish these components.

Turn Microsoft Defender Firewall on or off in Windows Security

  1. Select Start, then open Settings.
  2. Select Update & Security, then Windows Security.
  3. Select Firewall & network protection.
  4. Choose the profile you want to configure: Domain network, Private network, or Public network.
  5. Under Microsoft Defender Firewall, switch the setting to On or Off. Approve an administrator or User Account Control prompt if Windows displays one.

Windows shows settings for all three profiles, and each can be configured separately. The profile names describe network trust: Domain is for organization-managed networks, Private for networks you trust, such as home, and Public for untrusted places such as cafés, hotels, airports, or libraries. Keep the firewall on for all profiles, particularly Public. Do not change a network from Public to Private just to make an app work; that changes its trust and discovery behavior. These labels and controls are described in Microsoft’s Windows Security instructions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Switching the firewall off is best limited to a short, specific troubleshooting test. While it is off, the device is more vulnerable to unwanted network access. Test only the connection you are investigating, then turn the firewall back on. If the problem persists with the firewall off, that does not prove the firewall was the cause; check the troubleshooting section below.

Allow a blocked app instead of turning off the firewall

  1. Open Windows Security → Firewall & network protection.
  2. Select Allow an app through firewall.
  3. Select Change settings. Approve the administrator prompt if needed.
  4. Select the checkbox beside the app. If it is not listed, select Allow another app and browse to its executable.
  5. Choose the appropriate network scope—Private, Public, or both—then select OK.

Allow only an app you recognize and trust. Microsoft considers an app exception generally less risky than opening a port: an exception can be associated with a specific app, while a port rule permits traffic through that port until the rule is removed. Microsoft explains the risks of allowing apps through Windows Firewall.

If an app still cannot connect, use Advanced settings to investigate a narrowly scoped inbound or outbound rule rather than opening a broad port without understanding the need. A rule should be limited to the required app, traffic direction, profile, and port where possible.

Check firewall status with PowerShell

Open PowerShell as an administrator to check or change firewall profiles. This status command reports whether each profile is enabled:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Get-NetFirewallProfile | Select-Object Name, Enabled

To display additional configured profile settings, use:

Get-NetFirewallProfile | Format-Table Name, Enabled, DefaultInboundAction, DefaultOutboundAction

Enable all profiles:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

Disable all profiles:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

To change just one, specify that profile, for example:

Set-NetFirewallProfile -Profile Public -Enabled True

Use -Enabled False to turn that profile off. Changing only the active profile does not change the others; a laptop may connect later using a profile with a different setting. Microsoft documents the status cmdlet in Get-NetFirewallProfile and the enable setting in Set-NetFirewallProfile.

Rank #3
HP 2020 15.6" Touchscreen Laptop Computer/ 10th Gen Intel Quard-Core i5 1035G1 up to 3.6GHz/ 12GB DDR4 RAM/ 256GB PCIe SSD/ 802.11ac WiFi/Bluetooth 4.2/ USB 3.1 Type-C/HDMI/Silver/Windows 10 Home
  • 10th Generation Intel Core i5-1035G1 processor
  • 12GB system memory for full-power multitasking
  • 256GB Solid State Drive
  • 15.6" Micro-edge touchscreen display

Check or change the firewall from Command Prompt

Open Command Prompt as an administrator. To check the state of all profiles:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
netsh advfirewall show allprofiles state

Enable or disable every profile:

netsh advfirewall set allprofiles state on
netsh advfirewall set allprofiles state off

To change only the current profile, use currentprofile instead of allprofiles:

netsh advfirewall set currentprofile state on
netsh advfirewall set currentprofile state off

You can also name a profile directly:

netsh advfirewall set publicprofile state on
netsh advfirewall set privateprofile state on
netsh advfirewall set domainprofile state on

Replace on with off to disable the named profile. Use allprofiles only when you intend the change to apply broadly. Microsoft documents these commands and status checks in its netsh advfirewall reference.

Rank #4
Dell Latitude 7480 Laptop 14 - Intel Core i7 6th Gen - i7-6600U - 3.4Ghz - 256GB SSD - 16GB RAM - 1920x1080 FHD - Windows 10 Pro (Renewed)
  • Latitude 7480 Laptop 14"
  • Intel Core i7 6th Gen i7-6600U -Core Processor 2.6GHz (3.4GHz With Turbo Boost)
  • 256 GB SSD Hard Drive & 16GB Memory
  • 1920x1080 FHD resolution Non-Touch with Webcam and an integrated graphics chip
  • Wireless Wifi & Bluetooth

Understand “Block all incoming connections”

This option is not the same as turning the firewall off. With the firewall off, protection is disabled for the selected profile. With Block all incoming connections enabled, the firewall remains on but blocks incoming connections even for apps on the allowed list. That can disrupt apps and services that need incoming traffic. Microsoft describes this option and its effect.

Restore the default firewall settings

If a custom rule or setting is causing trouble, open Windows Security → Firewall & network protection and select Restore firewalls to default, then confirm. This can undo changes that are interfering with apps or networking; on managed devices, organization policies may be applied again.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a command-line reset, first export a backup if the computer has custom rules you may need:

netsh advfirewall export "%USERPROFILE%Desktopfirewall-backup.wfw"

Then run this in an elevated Command Prompt:

netsh advfirewall reset

The reset returns Windows Defender Firewall with Advanced Security policies to defaults and may remove or reset custom rules. Microsoft documents reset and export in the netsh advfirewall reference; the Windows Security reset option is covered in Microsoft’s firewall guide.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a missing toggle or a problem that remains

The setting is unavailable or keeps reverting

  • Work or school device: An administrator may manage the setting through policy or device-management software. Contact the organization’s IT administrator; do not try to bypass its controls. Microsoft notes that policy can prevent users from changing firewall settings in its firewall instructions.
  • Insufficient permissions: Firewall-wide changes require administrator approval. Use an administrator account or ask an administrator to make the change.
  • Third-party security suite: Check its firewall or network-protection controls and consult the vendor. A third-party antivirus may affect Microsoft Defender Antivirus behavior, but that alone does not establish that it has disabled Microsoft Defender Firewall. See Microsoft’s antivirus FAQ.
  • Unexpectedly disabled protection: Review Windows Security notifications and run a Microsoft Defender scan rather than leaving the firewall off while investigating.
  • Different Windows edition or build: Labels can vary in older Windows 10 builds, and Windows 10 in S mode may expose fewer options. Microsoft describes Windows Security availability in Help protect my device with Windows Security.

The app still fails when the firewall is off

Re-enable the firewall. The cause may instead be a router or modem rule, DNS or general connectivity, VPN or proxy settings, the app’s permissions or server availability, antivirus or endpoint-security controls, or a Windows service or driver. Troubleshoot the app and network, then use a specific allowed-app exception or a narrowly scoped firewall rule if the firewall is confirmed to be blocking required traffic.

Check that you changed the right Windows Security control

Firewall & network protection controls network filtering. Virus & threat protection contains antivirus settings such as real-time protection. Changing the latter is not a way to enable or disable the firewall.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not stop the firewall service

Do not use the Services console to stop the Windows Defender Firewall service as a workaround. Microsoft’s command-line guidance says to use supported firewall configuration commands rather than stopping the service when a firewall change is required.

Windows 10 support status

Microsoft ended standard Windows 10 support on October 14, 2025. As of September 26, 2026, a normal installation no longer receives free Windows Update security fixes or technical support unless it is covered by a relevant paid or organizational support arrangement. Keeping the firewall on remains sensible, but it does not make an unsupported operating system fully secure. Plan to move to a supported Windows release; see Microsoft’s Windows 10 support notice.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.