Windows Defender Firewall helps prevent hackers and malicious software from gaining access to your PC through the internet or a network. Your organization might require you to turn it on before you can access their network resources from your device.
To turn on Windows Defender Firewall:
Go to Start and open Control Panel.
Select System and Security > Windows Defender Firewall.
Choose Turn Windows Firewall on or off.
Select Turn on Windows Firewall for domain, private, and public network settings.