According to your needs, you can configure Windows Firewall settings (block or open port in Windows 10/8/7l) and restore defaults if you are unsatisfied with the default Windows Firewall settings. However, for this, you need to get to the advanced settings of the firewall. This is simple, simply open up the control panel and in its search box type – Firewall. Then open Firewall and click on its ‘Advanced Settings’ link. In this post, we will see in detail how to block or open a port in Windows 10/8/7 firewall

  

You will learn how to: 

You'll also learn more about automated endpoint security and management.

Credits

Originally posted - https://www.action1.com/kb/blocking-or-allow-TCP-IP-port-in-Windows-firewall.html