Seunghyun Yoo

Posts | Development | About

[EN] xrdp - how to restore the previous session

Xrdp is an open-source remote desktop protocol server. It enables Linux users to use a remote desktop connection to Microsoft Windows.

However, whenever a connection is established, it creates a new rdp session rather than restores the previous session. The progrms in the previous session are still running. Here is how to resolve this issue.

Open the /etc/xrdp/xrdp.ini file:


Initially, the port is set to -1, and we can change this value to ask - 1. After doing this, we should restart the service.

sudo service xrdp restart

Then, we will see the new input box for the port number. The port number for the first session is usually 5911 if the port range is not manually configured.