How to Allow or Block an App Through Windows Firewall
Let a specific application communicate through the firewall or block it completely.
Step-by-step
- Open Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall
- Click 'Change settings'
- Find the app in the list or use 'Allow another app...' to browse to its executable
- Tick the Private and Public checkboxes to allow (or clear them to block), then click OK
Reference: learn.microsoft.com