Hope this help
The Windows Firewall with Advanced Security is a host-based firewall that runs on Windows Server 2012 and is turned on by default. Firewall
settings within Windows Server 2012 are managed from within the
Windows Firewall MMC (Microsoft Management Console). To review and set
Firewall settings perform the following:
Open the Server Manager from the task bar.
List item Click the Tools menu and select Windows Firewall with Advanced Security.
From the right side of either the Inbound Rules or Outbound Rules
**tab click **New Rule.
Select Custom from the Rule Type radial button and click Next.
Select the Program association for the Custom Firewall Rule as either All programs or the path to a program and click Next.
From the Protocol type field select the protocol type and click Next.
Select an IP address association for both local and remote addresses and click Next.
Select an action to take on matching traffic and click Next.
Select the profiles associated with the custom rule and click Next.
Provide a name for your Firewall rule and an optional description and click Finish.
Once created, the rule will be enabled. The firewall rule can be found on the corresponding Rule tab, either inbound or outbound
depending on the type created. To disable or delete the rule find the
rule in the MMC, right-click it, and select either Disable Rule or