Home / Security Lab

Firewalls Explained: Your Computer's Doorman

What a firewall does, how Windows Firewall works and the settings worth checking.

In this guide
  1. Two kinds of firewall
  2. What it protects against
  3. Windows Defender Firewall
  4. Choose the right network profile
  5. Allowing programs
  6. What a firewall cannot do
  7. Do you need a third-party firewall?
  8. Router firewall
  9. Troubleshooting tip

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