Hello @zainab rehman
xrdp and xrdp-sesman use TCP port 3350 on the loopback interface (127.0.0.1) to communicate. From above it looks like xrdp-sesman
is listening on 3350, but xrdp
is for some reason unable to connect to it.
You need a couple of things to check:
- In xrdp.ini there is a setting for SSL protocols. For connection from Windows 10, I suggest
ssl_protocols=TLSv1.2, TLSv1.3
- Check if you have a file /etc/X11/Xwrapper.config containing a line.
allowed_users = anybody
- Try to delete file
/etc/pam.d/xrdp-sesman
I would suggest testing the remote machine’s port you are trying to connect to
telnet <remore-machine-name-or-IP-address> 3389
Also you can use following commands for troubleshooting. The first command checks the processes are using the same network stack, the second looks for processes listening on port 3350, and the third probes port 3350 to see if it's open.
sudo ps -e -o pid,netns,command | grep xrdp sudo ss -alp 'sport = 3350' sudo nmap -p 3350 127.0.0.1
https://github.com/neutrinolabs/xrdp/issues/1777
https://github.com/neutrinolabs/xrdp/issues/2336