To turn Windows Firewall on or off:

  1. Select the Start button > Settings:
    image
  2. Then select Update & Security > Windows Security: 
    image
  3. Then select Firewall & network protection:
    image
  4. Select an active network profile.
    image
  5. 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.