Sitting at an Ubuntu computer is not always practical, and a terminal session cannot show what is open on its screen. The Remote Desktop (RDP) server built into Ubuntu puts that desktop in a window on another computer, so you can work on it from a Windows, Mac or Linux machine on the same network.
Desktop Sharing in Settings shares the session you are already signed in to, at its current screen resolution, so the other computer sees exactly what is on your monitor. It uses the standard RDP protocol on port 3389, so no extra server package or VNC setup is involved. The Remote Login tab next to it is a separate feature for reaching your account when nobody is using it.
Anyone who can reach that port with the username and password can view your desktop, and with Remote Control on they can also run apps and open your files. Ubuntu generates a long separate password for this instead of using your account password. Keep the server on a network you trust, or reach it over a VPN, and do not forward port 3389 on your router to the internet.
Steps to enable Remote Desktop (RDP) server on Ubuntu:
- Open Settings from the system menu in the top-right corner.

- Click System at the bottom of the sidebar.

- Click Remote Desktop in the list.

- Enable Desktop Sharing with the switch at the top of the page.

- Switch on Remote Control to let the other computer use your mouse and keyboard.
Leave it off if the other computer only needs to watch the screen. Ubuntu then ignores clicks sent from the remote app.
- Note the Username and Password under Login Details.
The eye button reveals the password, and the pencil buttons let you change either value. If both fields are empty and a Some settings are locked banner appears, your login keyring is still locked, which can happen after automatic login. Signing in with your password opens the keyring and fills them in.
- Click Verify Fingerprint at the bottom of the page.

- Connect to Ubuntu's address from a remote desktop app on the other computer.
Remmina takes the address in the bar at the top, with RDP selected beside it. On Windows, use Remote Desktop Connection. If the app cannot find the Hostname from How to Connect, use the IPv4 Address in Settings → Network or Wi-Fi, under the active connection's details. If Port is not 3389, add it after the address, as in
192.168.50.10:3390.If nothing answers and Ubuntu's
ufwfirewall is on, allow your own network range withsudo ufw allow from 192.168.50.0/24 to any port 3389 proto tcp. - Click Yes once the fingerprint matches the Encryption Fingerprint window on Ubuntu.
Both show the same 32 pairs, though the app may use lower case on one line. If they differ, click No, because something other than your Ubuntu computer answered.
- Sign in with the username and password from Login Details.

- Check that the remote window shows Ubuntu's desktop with the orange sharing indicator in its top bar.
With Remote Control on, clicking Files in the remote window also opens it on Ubuntu. The orange indicator in Ubuntu's top bar shows while someone is connected. Its stop button ends that connection only. Switching off Desktop Sharing in Settings is what closes the port. Remmina's scaled mode button in the left toolbar fits the whole desktop in its window.