Score:0

How can I change RDP port number in gnome-remote-desktop in Ubuntu 22.04?

vc flag

In Ubuntu 22.04 and later, support GUI remote control via built-in gnome-remote-desktop in RDP protocol.

I found similar question but cannot get valuable answer.

How can I change the ports used by built-in GNOME remote desktop for Ubuntu 22.04?

Default port of rep is 3389. However, I should change the port number due to the institution's security policy.

ec flag
**Welcome to the Ask Ubuntu community.** While not a complete answer, you may want to review the following discussion, as it's relevant: https://askubuntu.com/q/1459177/32664.
FedKad avatar
cn flag
Are you the _same_ person that asked the same question mentioned above by @richbl?
Score:0
cn flag

Besides the option of tunnelling the traffic over an SSH connection as suggested in the comments, you can try to change the value of port=3389 in file /etc/xrdp/xrdp.ini. I haven't tested that, but it is should work.

After that, you should restart the service with:

$ sudo systemctl restart xrdp

Also, if you have a firewall, do not forget to update the firewall rules to allow inbound connections to the new port.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.