Network · Windows 11
Fix Windows Firewall blocking one program while everything else connects
One program cannot get online while your browser and everything else work fine. Windows Firewall is holding a rule against that single program — often a prompt you declined once, or a rule left by an older version. Allow that program through on purpose, scoped to the network you trust.
What you need
- Ten minutes. Adding the right allowance takes a few minutes; confirming which rule was blocking takes the rest.
- Administrator access. Firewall rules are a system setting, so changing them asks for an administrator prompt.
- The exact program that fails. Note its name as it appears in the app list — games and launchers often have several related entries, and only one of them carries the traffic.
Read the problem before you touch it
- Confirm the block is really this PC's firewall. The pattern that points at the firewall is narrow: this one program fails, everything else connects, and the program works on another PC or worked on this one until recently. If the program fails everywhere, its service is down, not your firewall. Microsoft's overview of the firewall is at Firewall and network protection in the Windows Security app.
- Recall the prompt you may have declined. The first time a program asks for network access, Windows shows a firewall prompt. Choosing Cancel, or letting it time out, creates a lasting block for that program. That one click months ago is the most common origin of this exact problem.
- Check which network profile you are on. Windows keeps separate allowances for Private networks, like your home, and Public ones, like a cafe. A program allowed at home can still be blocked the moment the same laptop joins a public network — and that difference is protection working, not a fault. Look at the network's profile in Settings > Network & internet before changing rules.
The simple fixes, in order
- Allow the program through the firewall list. Open Windows Security > Firewall & network protection and choose Allow an app through firewall. Choose Change settings, find the program in the list, and check the box beside it plus the Private box for your home network. Leave Public unchecked unless you specifically need the program on public networks. Choose OK and test the program.
- Add the program if it is not listed. Still on that page, choose Allow another app, then Browse, and select the program's main executable in its install folder. Add it, then set its Private checkbox as above. Programs installed per-user and portable programs are the ones usually missing from the list.
- Trigger a fresh prompt when the entry looks right. If the program is listed and checked but still blocked, uncheck it, choose OK, start the program once so it asks again, then re-check it and choose OK. A rule created for an older version of the program can point at a file that no longer exists; removing and re-adding ties the rule to the current file.
- Test on the network you actually use. Rules are per profile, so test at home on the home network, not tethered to a phone or on a guest network, which Windows treats as public. A pass at home and a block on the guest network is the system behaving exactly as the checkboxes say.
The advanced route
- Look for an explicit block rule in the advanced console. Open Windows Defender Firewall with Advanced Security from the Start menu and check Inbound Rules and Outbound Rules for the program's name with a block action. An explicit block rule wins over an allow rule, which is why checking boxes sometimes changes nothing. Microsoft Learn documents this console in Windows Firewall with Advanced Security. Delete the block rule for that program, or change its action to Allow, then test again.
- Check for duplicate entries from an update. Programs that update by installing a new copy beside the old one leave two firewall entries with the same name pointing at different folders. Allow the entry whose path matches the version you actually run — open the program's Properties from its shortcut to confirm the folder — and remove the stale entry.
- Restore the firewall defaults only as a last resort. If the rule list is a tangle of old blocks and duplicates, Windows Security > Firewall & network protection offers Restore firewalls to default. That wipes every custom rule, including allowances other programs rely on — they will each prompt again on first use. It fixes a corrupted rule set, but it is a reset, not a tidy-up, so use it only when the targeted steps above have failed.
- Repair system files if the firewall pages will not open. If Windows Security closes or the firewall settings are grayed out for an administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, thensfc /scannow, from an administrator Command Prompt. Microsoft documents both in Using System File Checker in Windows. Restart and return to the allow list.
End state
- The program connects on your home network, every time it starts.
- Its allowance is scoped to Private, with Public left off unless you chose otherwise.
- No block rule for the program remains in the advanced console, and the firewall itself stays on.
When it goes wrong
- The program connects for a day, then is blocked again. Its updater likely replaced its executable, and the rule still points at the old file. Re-add the current file using the add step, and remove the stale entry so the list holds one rule per program.
- It works at home but not on public Wi-Fi. That is the Private-only allowance doing its job. Decide deliberately whether this program needs public networks; a game or chat app might, a local file-sharing tool should not get a Public allowance.
- Another security suite manages the firewall. Some third-party security packages take over firewall duties and gray out the Windows pages. Make the allowance in that suite's own settings instead; the Windows rule list is no longer the one deciding.
- Turning the firewall off "fixes" it, but nothing else does. Do not leave it off — that test only confirms the block is a rule. Turn it straight back on and work the advanced console step; an explicit block rule is hiding somewhere in the list.
Related fixes
-
Fix a PC that cannot see 5 GHz Wi-Fi networks while other devices can
Your phone sees the 5 GHz network and your PC never lists it. Ask the adapter what bands it supports first, then work through driver, band settings, and router channel in order.
-
Fix a laptop that drains its battery or runs hot while asleep in a bag
You close the lid with a healthy charge and open it to a flat battery or a hot bag. Read the battery and sleep reports first, then work through wake timers, network wake, and lid behavior in order.
-
Fix a laptop that only charges while it is off or asleep
The battery fills overnight but never gains a percent while you work. The laptop is using everything the adapter can give, or a battery limit is quietly holding the charge. Check the adapter's wattage first, then the charge limit, then the battery's own report.
-
Fix a file or folder that will not delete because it is open in another program
The 'open in another program' message means some process is holding the file open — often not the app you expect. Find the holder in Resource Monitor, close just that process or handle, and delete the file without a restart or a forced-delete tool.
Sources
- Microsoft Support, Firewall and network protection in the Windows Security app — checking firewall status and allowing an app through.
- Microsoft Learn, Windows Firewall with Advanced Security — the advanced console where inbound and outbound rules are managed.
- Microsoft Support, Using System File Checker in Windows — running DISM and SFC to repair missing or corrupted system files.