Turn Microsoft Defender Firewall on or off - Microsoft Support
Under Microsoft Defender Firewall, switch the setting to On. If your device is connected to a network, network policy settings might prevent you from completing these steps. For more info, contact your administrator. To turn it off, switch the setting to Off .