Windows 10:


Control Panel > Windows Defender Firewall > Allow an App Through Windows Firewall




Windows 7:

Control Panel > Windows Firewall > Allow a program of feature through Windows Firewall