> For the complete documentation index, see [llms.txt](https://docs.ititanhosting.ro/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ititanhosting.ro/docs/romana/vps/windows/deschidere-porturi.md).

# Deschidere porturi

Pentru a deschide un port pe un VPS cu **Windows**, urmați acești pași:

1. Deschideți terminalul (cmd);
2. Executați această comandă pentru a deschide un port pe **protocolul TCP:**

```
netsh advfirewall firewall add rule name="TCP Port <port>" dir=in action=allow protocol=TCP localport=<port>
```

2.1. Executați această comandă pentru a deschide un port pe **protocolul UDP:**

```
netsh advfirewall firewall add rule name="UDP Port <port>" dir=in action=allow protocol=UDP localport=<port>
```

**Modificați** `<port>` **cu portul dorit.**

**Exemple:**

1. Portul 30120 (UDP+TCP), pentru FiveM:

```
netsh advfirewall firewall add rule name="TCP Port 30120" dir=in action=allow protocol=TCP localport=30120 & netsh advfirewall firewall add rule name="UDP Port 30120" dir=in action=allow protocol=UDP localport=30120
```

2. Portul 25565 (TCP), pentru Minecraft:

```
netsh advfirewall firewall add rule name="TCP Port 25565" dir=in action=allow protocol=TCP localport=25565
```

3. Portul 27015 (TCP+UDP), pentru CS2:

```
netsh advfirewall firewall add rule name="TCP Port 27015" dir=in action=allow protocol=TCP localport=27015 & netsh advfirewall firewall add rule name="UDP Port 27015" dir=in action=allow protocol=UDP localport=27015
```

4. Portul 28015 (TCP+UDP), pentru Rust:

```
netsh advfirewall firewall add rule name="TCP Port 28015" dir=in action=allow protocol=TCP localport=28015 & netsh advfirewall firewall add rule name="UDP Port 28015" dir=in action=allow protocol=UDP localport=28015
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ititanhosting.ro/docs/romana/vps/windows/deschidere-porturi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
