Page cover image

Open Windows Firewall Ports

Learn how to open ports on the windows firewall


How to Open Ports in Windows Firewall on Windows Server 2022

  1. Open Control Panel:

    • Click the Start menu, search for Control Panel, and open it.

  2. Navigate to Windows Defender Firewall:

    • In the Control Panel, select System and Security.

    • Then, click Windows Defender Firewall.

  3. Open Advanced Settings:

    • In the left sidebar, click on Advanced Settings.

    • This will open the Windows Defender Firewall with Advanced Security window.

  4. Create a New Inbound Rule:

    • In the left-hand panel, select Inbound Rules.

    • On the right side, click New Rule.

  5. Select Port:

    • In the New Inbound Rule Wizard, select Port and click Next.

  6. Choose Protocol and Port Number:

    • Choose TCP or UDP, depending on the protocol you need.

    • Enter the specific port number you want to open, then click Next.

  7. Allow the Connection:

    • Select Allow the connection and click Next.

  8. Apply to Network Profiles:

    • Choose when the rule applies (Domain, Private, Public) and click Next.

  9. Name the Rule:

    • Give the rule a recognizable name (e.g., "Port 80 for Web Server") and click Finish.

Outbound Rule (Optional):

Repeat the steps under Outbound Rules if you need to open the port for outbound traffic as well.

Last updated

Was this helpful?