> For the complete documentation index, see [llms.txt](https://docs.vibeshost.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vibeshost.com/gtq/windows/open-windows-firewall-ports.md).

# Open Windows Firewall Ports

***

{% hint style="warning" %}
In most cases, you will need to open ports both in Windows Firewall and on the anti-DDoS provider’s dashboard (such as Path.net or GCore)
{% endhint %}

#### **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.
