I have installed xrdp on a Ubuntu mate 16.04 PC and set up xrdp on it. I would like to set a static port so that same session is always opened. But for some reason when I set a static port remote desktop fails to login.
/etc/xrdp/xrdp.ini I set port to
port=-1 for a random port and I see that port 3350 is used. Remote login works with
port=-1 but when I set port to
port=3350 remote login does not work any more. I have also tried other ports such as
5910 etc and none work.
With static port I get following message with remote desktop application in windows 7
started connecting connecting to 127.0.0.1 3350 tcp connected
It seems to get stuck after tcp connected.
I used following steps to setup
#!/bin/sh if [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGE fi . /etc/X11/Xsession mate-session
[xrdp1] name=sesman-Xvnc lib=libvnc.so username=ask password=ask ip=127.0.0.1 port=ask3350
When I run netstat I can see that
port 3350 is active
netstat -an | grep "LISTEN" | grep ":3350" tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN ps axf | grep xrdp 1058 ? Sl 69:09 /usr/sbin/xrdp 1096 ? S 0:00 /usr/sbin/xrdp-sesman 1946 ? S 0:00 \_ /usr/sbin/xrdp-sessvc 1949 1948 1953 ? Sl 0:00 \_ xrdp-chansrv 14406 pts/8 S+ 0:00 \_ grep --color=auto xrdp
Any tips on how to fix this?