How to Fix Windows Firewall Blocking Apps in Windows 11

App blocked by Windows Defender Firewall, can't join a game server, or file sharing fails? Add allow rules, reset firewall defaults, and fix network profile.

  • 7 fixes, easiest first
On this page · 7 steps

Symptoms

  • Pop-up: Windows Defender Firewall has blocked some features of this app.
  • Game launches but multiplayer or server browser is empty.
  • Network discovery off: other PCs don't appear in File Explorer.

The Fix: Step-by-Step

Step 1: Allow the App When Windows Prompts

  1. When the firewall dialog appears, click Allow access.
  2. Check both Private and Public if you need the app on home and travel networks, or Private only for home file sharing (safer).
  3. If you clicked Cancel earlier, remove the block in Step 2.
Did it work?No, go to Step 2

Step 2: Add the App Through Settings

  1. Settings then Privacy & security then Windows Security then Firewall & network protection.
  2. Click Allow an app through firewall.
  3. Click Change settings then Allow another app then Browse → select the .exe (e.g. steam.exe, javaw.exe).
  4. Check Private (and Public only if needed) → OK.
Did it work?No, go to Step 3

Step 3: Set the Network to Private (Home Networks)

Public profile blocks most inbound sharing.

  1. Settings then Network & internet then Wi-Fi or Ethernet → click your connected network.
  2. Set Network profile type to Private.
  3. Retry the app or share files between PCs.
Did it work?No, go to Step 4

Step 4: Enable Network Discovery (File Sharing)

  1. Settings then Network & internet then Advanced network settings then Advanced sharing settings (or search Advanced sharing settings in Start).
  2. Under Private profile: turn on Network discovery and File and printer sharing.
  3. Allow through firewall when prompted.
Did it work?No, go to Step 5

Step 5: Create an Inbound Rule (Advanced)

When the app list does not include your program:

  1. Press Win + R, type wf.msc, Enter (Windows Defender Firewall with Advanced Security).
  2. Inbound Rules then New Rule then Program → browse to the .exe → Allow the connection.
  3. Apply to Domain, Private, Public as needed → name the rule (e.g. "Allow MyGame").
  4. Repeat for the game's anti-cheat or launcher .exe if multiplayer still fails.
Did it work?No, go to Step 6

Step 6: Reset Firewall to Default (Last Resort Before Disabling)

  1. Settings then Privacy & security then Windows Security then Firewall & network protection.
  2. Click Restore firewalls to default (wording varies): confirm.
  3. Re-allow only the apps you trust using Steps 2–5.
Did it work?No, go to Step 7

Step 7: Confirm Third-Party Antivirus Is Not Doubling Up

Norton, McAfee, and Avast add their own firewall layers.

  1. Open the third-party suite → firewall section → add the same allow rules.
  2. Or uninstall the third-party firewall component and rely on Windows Defender Firewall to avoid conflicting rules.
Did it work?No, see similar problems

What Not to Do

  • Do not turn off Windows Defender Firewall permanently: brief testing only, then re-enable.
  • Do not open all ports on the router for a game without checking the game's official port list first.

Still Not Working?

  • Steam or game still can't connect? Allow Steam Client Bootstrapper and the game .exe; also see Steam not opening.
  • VPN active? VPN adapters often use Public profile: split tunnel or add firewall rules for the VPN interface in wf.msc.
  • Windows Security app will not open to check the firewall? See fix Windows Security not opening.
Why this happens

A program shows Windows Defender Firewall has blocked some features, multiplayer games can't find lobbies, or another PC on your network can't see shared folders. Windows 11 blocks inbound connections by default on Public networks: wrong network profile or missing allow rules are the usual fix, not disabling the firewall entirely.

No internet at all? Start with DNS server not responding. Mobile hotspot clients get no internet? See mobile hotspot not working.