How to Open Ports Windows 11: A Step-By-Step Guide for Beginners

Opening a port in Windows 11 means creating a firewall rule that permits specific network traffic. Do this only when an application or service genuinely requires inbound access.

Create an inbound port rule

  1. Search for and open Windows Defender Firewall with Advanced Security.
  2. Select Inbound Rules.
  3. Choose New Rule.
  4. Select Port and click Next.
  5. Choose TCP or UDP and enter the required port number.
  6. Select Allow the connection only if that is appropriate for the application.
  7. Choose the network profiles where the rule should apply, give it a descriptive name, and finish the wizard.

Keep the rule as narrow as possible

Confirm the exact protocol and port in the application’s official documentation. Limit the rule to the necessary network profile and, where practical, the specific program or remote addresses. Opening unnecessary ports increases the services reachable from the network.

If the application still cannot connect, verify that it is actually listening on that port and that a router, VPN, security product, or organization policy is not blocking the traffic elsewhere.

An inbound firewall rule on the PC does not automatically configure port forwarding on a router. Internet-facing server applications may require separate router configuration, which exposes additional risk and should be done only when you understand the service and network.