# Change RDP Port

Click on the **RDP Audit** tab on the left-hand side of RDPHelper.

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

Click on **Change Port Number** located under the RDP Port Number section.&#x20;

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

We recommend you pick a 5-digit port as Windows services generally don't use 5-digit ports.

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

After you click Apply, you will be asked to reboot your server. Make sure that you've saved your port number somewhere safe.&#x20;

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

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

Once the machine has rebooted, you'll be able to connect to the server again using the new port.

<figure><img src="/files/9M58gkwPJ2qkM9b7Zl04" alt=""><figcaption></figcaption></figure>


---

# 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-servers.zesty.group/security/rdphelper/change-rdp-port.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.
