It's important to enable a local firewall to protect from unauthorized access. Windows contains a built-in firewall called Windows Defender that is on by default, you should leave the default firewall on. If you’ve turned the firewall off for some reason, and you didn’t replace it with something else, then you should turn on the Windows Defender firewall. Without a firewall, your computer is vulnerable to external attacks.
For Windows 10
- Select the Start button > Settings > Update & Security > Windows Security and then Firewall & network protection.
- Select a network profile: Domain network, Private network, or Public network.
- Under Microsoft Defender Firewall, switch the setting to On.
For Windows 11
- Right-click the Windows icon on the taskbar.
- Click Settings.
- Click Privacy & security.
- Click Windows Security.
- Click Firewall & network protection.
- If the firewall is off, you will see a red X icon in the Firewall & network protection section. Click the Turn on button.
For Mac OS
- Navigate to System Preferences.
- Click on Security & Privacy.
- Select the Firewall tab.
- Click the lock icon to make changes, and type in credentials.
- Select Turn on Firewall.