Windows

How to Connect Windows 11 to Ubuntu: A Guide to XRDP

Richard
Written by
Richard
Aug 12, 2021 Updated Apr 14, 2026 2 min read
How to Connect Windows 11 to Ubuntu: A Guide to XRDP

Have you ever wanted to control your Ubuntu computer from your Windows 11 PC? You can do this easily using a tool called xrdp. It lets you see your Ubuntu desktop on your Windows screen and use your mouse and keyboard to control it.

Why use xrdp?

Using xrdp allows you to work on your Linux computer from the comfort of your Windows desk. It is great for managing files, running apps, or helping a friend with their Ubuntu setup without being in the same room.

What happens when done?

Once you finish these steps, you will have a direct, secure window to your Ubuntu desktop right on your Windows 11 computer.

For more about xrdp, please visit its homepage.

Installing xrdp on Ubuntu

To use this, your Ubuntu computer must have a desktop interface. If you are using a text-only server, you will need to install a desktop environment first. Open your terminal and run these commands (requires admin privileges):

sudo apt update
sudo apt install xrdp

After installing, check that the service is running with this command:

sudo systemctl status xrdp

Windows 11 Remote Desktop Connection log out screen for xrdp session

You should see that the service is active and running. The output will look like this:

xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running)

Configuring xrdp

Now, we need to make sure everything connects smoothly. First, add the xrdp user to the security group so it can access the necessary keys (requires admin privileges):

sudo adduser xrdp ssl-cert

Next, we will fix a common issue where the screen might show up black. Edit the startup script (requires admin privileges):

sudo nano /etc/xrdp/startwm.sh

Add these two lines to the end of the file:

unset DBUS_SESSION_ADDRESS
unset XDG_RUNTIME_DIR

Save the file and exit. Now, restart the service to apply the changes (requires admin privileges):

sudo systemctl restart xrdp

Finally, make sure your firewall allows the connection (requires admin privileges):

sudo ufw allow from 10.0.2.0/24 to any port 3389
sudo ufw reload

Note: Log out of your Ubuntu user account before trying to connect. You cannot be logged in at the computer itself and through remote desktop at the same time.

Connecting to Ubuntu desktop from Windows 11 using Remote Desktop

Connecting from Windows 11

On your Windows 11 PC, open the “Remote Desktop Connection” app. Type in the IP address of your Ubuntu machine and click connect.

Accepting the xrdp security certificate for Windows 11 to Ubuntu connection

If you see a security warning about a certificate, click Yes to proceed.

Successful xrdp connection between Windows 11 and Ubuntu desktop environment

Enter your Ubuntu username and password when prompted.

Ubuntu desktop interface displayed inside Windows 11 Remote Desktop window

Summary

Setting up a remote connection from Windows 11 to Ubuntu is a great way to manage your devices. By installing xrdp, adjusting the startup script, and ensuring your firewall is open, you create a seamless bridge between both systems. This setup gives you full control of your Ubuntu desktop, including handy features like clipboard sharing, right from your Windows PC.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2458 articles → Twitter

📚 Related Tutorials

Enable Remote Desktop on Ubuntu Linux
Ubuntu Linux Enable Remote Desktop on Ubuntu Linux
How to Connect to Wi-Fi on Windows 11
Windows How to Connect to Wi-Fi on Windows 11

0 responses to “How to Connect Windows 11 to Ubuntu: A Guide to XRDP”

  1. Followed the same steps but I get an error.

    connecting to sesman ip 127.0.0.1 port 3350 sesman connect ok sending login info to session manager please wait login successful for display 10 started connecting connection problem giving up some problem

    • Hello! I’ve encountered the same error as well. I’ve tried all ways and means, but it is still not connecting. Please help. Thank you

  2. Hi,
    I followed the exact instruction but getting the following error:

    connecting to sesman ip 127.0.0.1 port 3350
    sesman connect ok
    sending login info to session manager, please wait…
    xrdp_mmprocess_login_response:login failed

  3. I have followed the steps once while i was logged in Ubuntu through Powershell and then with closed. In both cases it doesn’t open GUI Desktop and xorg window just closes no error.

Leave a Reply

Your email address will not be published. Required fields are marked *