How to secure an RDP server

RDP servers on the internet are probed constantly. These nine steps reduce the risk without making yours hard to use.

Use a long password, keep Windows updated and limit who can reach the Remote Desktop port. Those three stop most attacks. The rest make it harder still.

1. Set a long, unique password

Automated attacks guess passwords. A passphrase of four or more unrelated words, used nowhere else, is a good defence. In a session, press Ctrl + Alt + End to change it.

2. Install updates

Open Settings, then Windows Update. Serious flaws in Remote Desktop have been found and fixed before, such as BlueKeep in 2019. Updates are how you get the fixes.

3. Keep Network Level Authentication on

NLA checks who you are before a full session starts. It is on by default in current versions. Find it under System Properties, Remote.

4. Limit who can connect

In Windows Defender Firewall, set the Remote Desktop rules to accept only the addresses you use. Make sure you have another way in first, such as a console, so you cannot lock yourself out.

5. Use a VPN if you can

With a VPN in front, the Remote Desktop port does not need to be open to the internet at all.

6. Lock accounts after failed attempts

In Local Security Policy, open Account Lockout Policy and set a threshold. Keep it high enough that attackers cannot lock you out on purpose.

7. Use a separate account for daily work

Do everyday work as a standard user, and keep the administrator account for changes.

8. Watch the sign-in log

In Event Viewer, open Windows Logs, Security. Event 4625 is a failed sign-in, and 4624 is a successful one. A few failures are normal. A successful sign-in you do not recognise is not.

9. Keep backups somewhere else

If the worst happens, a recent copy on another system lets you start again.

Does changing the port help?

It cuts noise from simple scanners, but it does not stop anyone who looks. Treat it as tidiness, not protection.

A short checklist

  • Long, unique password
  • Updates installed
  • NLA on
  • Firewall limits set
  • Backups kept elsewhere

More help: Secure a Windows server and Fix a connection.

Try it on a server of your own

Windows or Linux, NVMe storage and instant setup, from €15 a month.

Configure a server