My OS is Ubuntu 16.04 (Unity), but I am using the Xfce4 (apt get xfce4) interface. I want to connect from a Windows 7 PC (using the standard remote controll) and from a Linux OS via rdesktop.

I want to use xrdp to connect to an existing locally started desktop session.

I looked up the www, but I only found "old" articles or articles which describe how to reconnect to a remote session (but I want to reconnect to a locally started session!):


How do I set up xrdp session that reuses an existing session?

I tried changing the xrdp.ini file, changing the port from -1 to 5910, but this didn't solve my problem.

Do you have any suggestions?


1 Answer 1


xrdp works internally by opening a new X session and controlling it through Xvnc.

Xvnc is the X VNC (Virtual Network Computing) server. It is based on a standard X server, but it has a "virtual" screen rather than a physical one. X applications display themselves on it as if it were a normal X display, but they can only be accessed via a VNC viewer

But this is just the default settings, there are other options that you can use:

enter image description here

In particular the option vnc-any also allows you to connect to any reachable vnc server:

enter image description here

So if you want to connect to an X session running on your regular monitor(s), you can install a regular vnc server and connect to it through xrdp.

  • that is for vnc, the OP was asking about xrdp
    – Scott
    Oct 24, 2018 at 17:38
  • 1
    @Scott read my answer again please, it seems you skipped a few important bits.
    – yms
    Oct 24, 2018 at 17:45
  • yes, I understand. But linux installs have available a number of remote options including various vnc servers and an xrdp daemon. Whether than daemon is a wrapper for vnc or not is irrelevant to the original question which was how to do with with the xrdp daemon.
    – Scott
    Oct 25, 2018 at 20:47
  • You are showing using xrdp as a 'client' to connect to another host aren't you? Not the same thing.
    – Scott
    Oct 25, 2018 at 20:47
  • 1
    @Scott "Whether than daemon is a wrapper for vnc or not is irrelevant" no is not, that fact is what enables you to use xrdp service to connect to a vnc server that exports your console session. That's the whole point of my answer.
    – yms
    Oct 25, 2018 at 21:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .