Firewalls Explained: Your Computer's Doorman
What a firewall does, how Windows Firewall works and the settings worth checking.
In this guide
A firewall controls which network connections are allowed into and out of your computer. Think of it as a doorman who checks every visitor against a list.
Two kinds of firewall
Network firewalls sit in your router and protect every device in your home. Software firewalls, like the one in Windows, run on the computer itself and can make decisions per program.
What it protects against
- Unsolicited connection attempts from the internet.
- Programs on your computer trying to send data out without permission.
- Attacks on services you did not realise were running.
Windows Defender Firewall
It is on by default. Open Windows Security, then Firewall and network protection to see its status for three network types: Domain, Private and Public. Public is the strictest and is the right choice for cafes and hotels.
Choose the right network profile
When you join a new network, Windows asks whether it is private or public. Choose Public unless you trust everyone on it, such as at home.
Allowing programs
Sometimes a legitimate program, such as a game or a video call app, needs permission. Windows asks and lets you allow it. Only allow programs you recognise, and only on networks you trust.
What a firewall cannot do
It cannot stop you from downloading malware or from falling for a phishing email. It is one layer of protection, not a complete solution.
Do you need a third-party firewall?
Many security suites include their own firewall. If you use one, make sure it replaces Windows Firewall rather than running as a second, conflicting one. See our antivirus comparison for which suites include one.
Router firewall
Your router has its own firewall. Keep the router's firmware updated and turn off remote management you do not need.
Troubleshooting tip
If an app cannot connect, check whether the firewall is blocking it before switching it off. Turning the firewall off entirely is rarely the right answer.
Written by the MyPCGuideCenter editorial team. This guide is general information, not professional advice. Menus, features and prices change between versions and countries. See our disclaimer.
More in Security Lab
Security Lab · 4 min read
McGuide: Antivirus Comparison with a Full McAfee Review
A clear, independent antivirus comparison covering McAfee, Microsoft Defender, Norton, Bitdefender, Malwarebytes and Trend Micro.
Security Lab · 2 min read
Safe Online Shopping: A Checklist Before You Pay
How to spot fake stores, pay safely and protect your details when you buy online.
Security Lab · 2 min read
Selling or Recycling an Old PC Without Leaking Your Data
How to back up, wipe and hand over a computer safely, so personal information does not go with it.