# Open Ports (Port Forwarding)

A firewall controls the incoming and outgoing traffic between the server and the Internet. Opened ports can be a security risk, due to which not every port is automatically opened.

If opened ports are needed for a game server or certain applications, a port forward must be performed.

Click on Windows Button and Search "**Windows Defender Firewall with Advanced Security**" :

<figure><img src="/files/4T0q4X6X8JLHNn7frIex" alt=""><figcaption></figcaption></figure>

&#x20;Right Click on "**Inbound Rules**" and Select "**New Rule**" :

<figure><img src="/files/Sw4JhSWDbsEucv3TJdBj" alt=""><figcaption></figcaption></figure>

With this new rule, the "**Port**" is selected as the "**Rule type**" and confirmed with "**Next" :**

<figure><img src="/files/xksw5VRRkuCTBDaEFACk" alt=""><figcaption></figcaption></figure>

Choose between **TCP** or **UDP** for your application and enter the desired port number to forward under "**Specific local ports**" Then click "**Next**" :

<figure><img src="/files/leolYbr0zJXTGmkdqii5" alt=""><figcaption></figcaption></figure>

Select "**Allow The Connection**" and Click "**Next**" :

<figure><img src="/files/4J2K64xh4y2N4e6kwWRx" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**INFO:**\
\
With "**Name**" only a name for this new "**Rule**" must be entered, this can be freely selected.

\
You should choose a name that is still unused and unique so that it can be found under "**Incoming rule**" or "**Outgoing rule**".
{% endhint %}

\
As soon as "**Finish**" is confirmed with the button, the rule is activated and the port is forwarded.

<br>


---

# 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.snghosting.com/windows-server/open-ports-port-forwarding.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.
