Turn Off Microsoft Defender Firewall for an Active Network in Windows 11

Temporarily disable the Windows Defender Firewall for your current network profile in Windows 11 to test apps, troubleshoot connections, or allow trusted local traffic. Remember to re-enable it when finished.

What the video covers

Disable the Microsoft Defender Firewall for the currently active network profile in Windows 11 via the Settings app.

Watch the video on YouTube

Step-by-step instructions

  1. Open Settings
    Open the Start menu and choose Settings to access Windows system settings.
  2. Open Windows Security
    In Settings, go to Privacy & Security, then open Windows Security to access security features.
  3. Go to Firewall & network protection
    Within Windows Security, choose Firewall & network protection to see your network profiles and firewall status.
  4. Select the active network profile
    Identify and open the profile marked as the active or connected network (e.g., Private, Public, or Domain) you want to change.
  5. Turn off Microsoft Defender Firewall
    Toggle Microsoft Defender Firewall to Off for that active network profile and confirm any prompts to apply the change.
  6. Test and re-enable when finished
    Perform the troubleshooting or testing you needed. When complete, return to the same profile and toggle the firewall back On to restore protection.

Watch the video

Video thumbnail for Turn Off Microsoft Defender Firewall for an Active Network in Windows 11 Play tutorial

Watch on YouTube

Why it matters

The firewall can block apps, ports, or local connections you trust. Temporarily turning it off helps isolate issues or allow specific traffic while you test or configure software.

Check your result

After turning the firewall off, verify the setting shows Microsoft Defender Firewall is off for the active network profile and confirm the app or connection you were troubleshooting now works.

Troubleshooting

If the firewall switch is grayed out or re-enables itself, you may need administrator permissions or group policy/device management controls may be enforcing the setting. Reboot if changes don’t appear; if managed by an organization, contact your IT admin.