Skip to main content

How to Open a Required Port in Windows Defender Firewall

Opening a specific port in the Windows Defender Firewall allows network traffic to reach a specific service or application on your Windows Server. This procedure is performed by a Windows Server Administrator to ensure that necessary services, such as...

Opening a specific port in the Windows Defender Firewall allows network traffic to reach a specific service or application on your Windows Server. This procedure is performed by a Windows Server Administrator to ensure that necessary services, such as web servers or mail servers, can accept incoming connections.

Before you begin

You will need:

  • Administrator privileges on the Windows Server.

  • The specific port number (e.g., 80, 443, 3389) and the protocol (TCP or UDP) required for the service.

Opening a port in Windows Defender Firewall

  1. Open Windows Defender Firewall with Advanced Security.

  2. In the left pane, select Inbound Rules.

  3. In the right pane, select New Rule....

  4. Select Port and click Next.

  5. Select the appropriate protocol (TCP or UDP) and enter the specific port number in the Specific local ports field.

  6. Click Next.

  7. Select Allow the connection and click Next.

  8. Select the profiles where the rule should apply (typically Domain, Private, and Public) and click Next.

  9. Enter a name and description for the rule (e.g., "Allow Port 80 for Web Traffic") and click Finish.

Confirm the result

  • The new rule will appear in the Inbound Rules list with a green checkmark icon, indicating it is active.

  • The specific service associated with that port can now receive traffic from the network.

If the port remains inaccessible after creating the rule

If the port is open in the Windows Defender Firewall but the service is still unreachable, verify the following:

  • Service Status: Ensure the application or service intended to use that port is currently running.

  • Binding: Verify that the application is correctly bound to the specific IP address and port.

  • External Firewalls: If the server is behind a hardware firewall or a router, ensure that the port is also opened on those devices.

  • ISP Restrictions: Confirm that your Internet Service Provider (ISP) does not block the specific port at the network level.

Limitations

This procedure only modifies the local Windows Defender Firewall settings. It does not automatically configure hardware firewalls, router settings, or ISP-level filtering. If your server is hosted in a cloud environment or behind a gateway, additional configuration on those external devices may be required.

Did this answer your question?