To turn Windows Firewall on or off:
- Select the Start button > Settings:
- Then select Update & Security > Windows Security:
- Then select Firewall & network protection:
- Select an active network profile.
- Under Microsoft Defender Firewall, switch the setting to Off. If your device is connected to a network, network policy settings might prevent you from completing these steps.
P.S. After testing, you can turn the firewall back on in the same way.