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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vibeshost.com/gtq/windows/open-windows-firewall-ports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
