# RDP (PORT: 3389)

The Remote Desktop Protocol (RDP) is a [protocol](https://www.cloudflare.com/learning/network-layer/what-is-a-protocol/), or technical standard, for using a desktop computer remotely. Developed by Microsoft.

Remote desktop users can access their desktop, open and edit files, and use applications as if they were actually sitting at their desktop computer.

RDP (Remote Desktop Protocol) operates on ports 3389 TCP and 3389 UDP . The only difference consists of how the information relayed by this protocol is presented to the end-user.

### How does RDP work?

* The RDP protocol opens a dedicated network channel for sending data back and forth between the connected machines (the remote desktop and the computer currently in use).
* It always uses network [port](https://www.cloudflare.com/learning/network-layer/what-is-a-computer-port/) 3389 for this purpose.
* Mouse movements, keystrokes, the desktop display, and all other necessary data are sent over this channel via [TCP/IP](https://www.cloudflare.com/learning/ddos/glossary/tcp-ip/), which is the transport protocol used for most types of Internet traffic.
* RDP also [encrypts](https://www.cloudflare.com/learning/ssl/what-is-encryption/) all data so that connections over the public Internet are more secure.

Because keyboard and mouse activity has to be encrypted and transmitted over the Internet, which takes a few milliseconds, and because the desktop display has to be transmitted back to the user, slight delays often occur.

[XFREERDP tool commands](https://linuxcommandlibrary.com/man/xfreerdp)

### Reference Links:

* <https://www.cloudflare.com/learning/access-management/what-is-the-remote-desktop-protocol/>
* <https://www.techtarget.com/searchenterprisedesktop/definition/Remote-Desktop-Protocol-RDP>


---

# 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://n0m4dsec.gitbook.io/sec-book/common-web-services/rdp-port-3389.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.
