Search Our Database
How to Enable New Ports in Windows Firewall – Windows Server 2016
Introduction
For applications to communicate through the Windows Server firewall, specific ports must be opened. This article provides a step-by-step guide on how to enable a port in the Windows Firewall with Advanced Security.
Procedure Overview
- Access Windows Firewall with Advanced Security:
- Open the control panel or directly access the Windows Firewall with Advanced Security snap-in.
- Create a New Inbound Rule:
- Configure a new inbound rule to allow traffic through the desired port.
- Specify the Port:
- During the rule creation, specify the port number you want to open.
Detailed Steps
1. Open Windows Firewall, add new rules for Inbound Rules.
2. Select Port and click on Next >.
3. Insert the port number (eg. 9998) under Specific local ports.
4. Select Next for using the rest of default settings.
5. Finish by entering 9998 as the rule’s name to easily remember the port allowed for the newly created rule.
Additional Considerations
- Rule Scope: You may also define a scope to limit which IPs can use the open port.
- Outbound Rules: If necessary, follow similar steps to create outbound rules for outgoing traffic.
- Testing: After creating the rule, ensure that the application or service can communicate through the specified port.
Conclusion
By enabling ports in the Windows Server Firewall as detailed above, you allow specific network traffic to and from your server, which is often required for applications and services to function correctly.