When I first created the droplet, I managed to succesfully install xrdp and connect to it through Microsoft Remote Desktop from my Windows machine. That was on Friday, today, it stopped working completely. I tried a miriad of solutions I found online, but no avail. No solution worked, I’ve tried reinstall the ubuntu image multiple times, forwarded the 3389 port multiple times, enabling and disabling the firewall, changing the default port, etc. None have worked so far. The only thing I know is that, through namp and the open port tool, the 3389 port appears to be closed, even though it is supposed to be open. The 22 port is shown correctly as open. I tried using x2go, but the desktop always crashed on startup. I’m in desperate need of help, I’ve searched everywhere for a working solution, without success. Xrdp logs are devoid of any erros, Microsoft Remote Desktop displays the x204 error consistently. I don’t know what to do anymore, any kind of help is deeply appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Changing the port xrdp listens to, to some other open port fixes the issue. With Microsoft Remote Desktop, using the address as ip:port is enough. I suspect DigitalOcean was blocking the 3389 port, that’s why it apperead open on the droplet, but was unreachable.
Hey @matiasantonioalonsoeiras,
When the port is shown as closed, it usually means nothing is listening on it. Anyway, here are a few things to check and possibly provide info on them.
SSH into your droplet and check the status of the xrdp service:
- sudo systemctl status xrdp
If it’s not running, try to start it:
- sudo systemctl start xrdp
Make sure that the firewall (UFW or iptables) is allowing connections on port 3389. If you’re using UFW, you can check the current rules with:
sudo ufw status
If the port is not listed, add a rule to allow it:
sudo ufw allow 3389
If you’re using iptables, check the rules with:
sudo iptables -L
If the port is not listed, add a rule to allow it:
sudo iptables -A INPUT -p tcp --dport 3389 -j ACCEPT
Inspect the xrdp logs for any errors or issues:
sudo cat /var/log/xrdp.log sudo cat /var/log/xrdp-sesman.log
Look for any error messages or failed connections.
Not seeing the Port as open when using NMAP is where we should start from, you SHOULD see it so it’s either the configuration not proper or your firewall is blocking it.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.