3389 port used for Remote Desktop requires TCP port 3389 to be open. Also, opening UDP port 3389 enables acceleration since RDP 8.0. It is possible to change the port used by the terminal server (or PC which is accessed), see this Microsoft support article: How to change the listening port for Remote Desktop..
3389 port number used for
It is used to allow users to connect to remote computers. For instance, Microsoft Remote Desktop Protocol typically uses TCP port 3389 to enable Remote Desktop connections to other computers. It allows remote network access over an encrypted route. Is port 3389 safe?
3389rdp
RDP’s default port 3389 can be used to launch on-path attacks. BlueKeep was one of the most serious RDP vulnerabilities and it was officially labeled as CVE-2019-0708. It was a remote-code execution (RCE) with no authentication and adhered to a specific format. It was workable and ended up spreading to other machines within the network.