Main features
- RDP logins to Linux from Windows, macOS, iOS, Android and Linux clients
- Separate persistent session per user, with reconnect
- Session resizing on connect and during a session
- Two-way clipboard for text, images and files
- Drive redirection from the client
- Audio and microphone redirection with extra modules
- H.264 and RemoteFX graphics encoding
- TLS encryption by default
- Proxy to other RDP or VNC servers
- Option to run the network daemon unprivileged
What xrdp does
xrdp is a Remote Desktop Protocol (RDP) server for Linux. Install it on a Linux machine and you can connect with the Remote Desktop client built into Windows (mstsc), Microsoft’s Remote Desktop app on macOS, iOS and Android, or open source clients such as FreeRDP, rdesktop and KRDC. You get a login screen, sign in with a normal Linux account and work in a full graphical desktop, with clipboard, shared drives and sound passed between the two machines.
The typical uses are reaching Linux servers, virtual machines and workstations from Windows PCs without installing anything extra, and giving several users their own desktops on one shared machine. It is not a screen-sharing or support tool: xrdp starts a separate session instead of showing what is on the physical monitor.
How connections work
xrdp listens on TCP port 3389, the standard RDP port, and encrypts the connection with TLS by default. After you log in, its session manager starts a desktop through one of two back ends: xorgxrdp, an Xorg module from the same project that the README recommends for the best experience, or an Xvnc server such as TigerVNC. Sessions keep running when you disconnect, and reconnecting takes you back to them. xrdp can also act as a proxy to other RDP or VNC servers, and it can listen on a vsock socket for Hyper-V and other virtual machines.
There is no relay or NAT traversal. For access from outside the network, use a VPN or SSH tunnel, or put Apache Guacamole in front for browser access. Exposing port 3389 directly to the internet is a bad idea for any RDP server.
Graphics and redirection
Since version 0.10.2, xrdp can encode the desktop with H.264, which the project says greatly reduces bandwidth and makes graphics-heavy applications smoother. RemoteFX is also supported. Sessions resize when the client window changes, clipboard sync covers text, images and files, client drives can be mounted on the Linux side, and audio and microphone redirection work once the extra PulseAudio or PipeWire modules are built.
Security
Logins go through PAM, so xrdp uses the machine’s existing accounts. It has no built-in two-factor authentication, but the wiki explains how to add authenticator-app codes through the PAM stack. Since 0.10.2, the network-facing xrdp daemon can run as an unprivileged user, with only the session manager keeping root rights. Releases in 2026 fixed a large number of vulnerabilities (eight CVEs in v0.10.6 and ten in v0.10.6.1), and the 0.9 series is end-of-life, so install updates promptly.
Wayland and desktop limitations
xrdp sessions run on X11. In October 2025 a maintainer stated that xrdp does not officially support Wayland and that work is starting with wlroots compositors; a prototype Wayland back end is under review in an open pull request. Desktops that are dropping their X11 session therefore need another route: GNOME ships its own RDP server, GNOME Remote Desktop, and KDE Plasma has KRdp. Both work with Wayland but are developed on GNOME’s and KDE’s own code hosting rather than GitHub.
On systemd-based distributions, the same user cannot be logged in on the physical console and over xrdp at the same time, because both sessions would share one D-Bus instance. Remote users may also see password prompts for actions that local users can perform freely, due to polkit rules.
Self-hosting xrdp
Most distributions package it: apt install xrdp on Debian and Ubuntu, dnf install xrdp on Fedora and RHEL with EPEL. Install xorgxrdp too if your distribution does not pull it in, and make sure your desktop environment can run on Xorg. Open 3389/tcp only to trusted networks.
Limitations
xrdp cannot show or share the existing local session, does not support Wayland desktops yet, has no NAT traversal or native 2FA, and is not suited to helping someone else on their own computer. The steady flow of security fixes means it needs regular updates.
Who it suits
xrdp suits administrators who want Windows users to reach Linux machines and VMs with the RDP client they already have, and teams sharing a Linux workstation or server between several users. For screen sharing of an existing session, see RustDesk; for browser access, Apache Guacamole. The remote desktop guide covers the protocols.
Technical details
Self-hosting needs
- Xorg with xorgxrdp (or TigerVNC Xvnc)
- PAM
Built with
- C
GitHub topics
- c
- linux
- remote-desktop
Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.