
Remote Desktop Protocol (RDP) is a Microsoft protocol that lets you control a Windows computer from another device. It is useful, but an exposed or weakly protected RDP connection is a common target for attacks. This guide shows how to set up Windows RDP securely, step by step.

Why RDP Security Matters
RDP gives full access to a machine, so a stolen password or an unpatched flaw can mean data theft or a takeover of the system. Many RDP attacks start with brute-force logins against ports that are open to the internet.
- Business use: teams reach files, apps and company resources from any location.
- IT support: administrators fix and maintain remote systems without a site visit.
- Collaboration: people in different places work on the same systems and files.
How to Set Up RDP Securely
- Enable Remote Desktop. Open Control Panel, go to System and Security, then System and Remote Settings. Under Remote Desktop, select Allow remote connections to this computer, and tick Allow connections only from computers running Remote Desktop with Network Level Authentication.
- Add only the users who need access. Add them to the Remote Desktop Users group and remove everyone else.
- Set the firewall rule. In Windows Defender Firewall, allow inbound TCP 3389 only from trusted IP addresses or your VPN range.
- Do not forward port 3389 to the internet. Connect through a VPN or an RD Gateway instead.
- Protect sign-in. Use a long passphrase for every account, and add multi-factor authentication through your VPN or RD Gateway.
How to Connect to the Remote Computer
- Open Remote Desktop Connection on the client computer. See Microsoft’s Remote Desktop clients.
- Enter the computer name or IP address (through your VPN) and click Connect.
- Sign in with an authorized account, and check the certificate warning before you accept it.
Windows RDP Security Checklist
- Passwords: use long passphrases, block known-breached passwords and change a password only when you suspect it was compromised. This follows NIST SP 800-63B, which no longer recommends forced periodic changes.
- Multi-factor authentication: require MFA at the VPN or RD Gateway.
- Network Level Authentication (NLA): it verifies the user before a session starts.
- Firewall rules: allow RDP only from trusted IP addresses.
- Updates: install Windows security updates on both the client and the host.
- Account lockout: in Local Security Policy, set an account lockout threshold (for example 5 failed attempts) to slow down brute-force attacks.
- Disable what you do not need: in Group Policy, turn off clipboard and drive redirection under Remote Desktop Services, Device and Resource Redirection.
- Limit access: keep the Remote Desktop Users group small.
How RDP Encryption Works
- Data protection: RDP encrypts traffic between the client and the server, so it cannot be read or changed in transit.
- Confidentiality: what you type and see stays private on the connection.
- Authentication: certificates help you confirm that you are connecting to the right computer.
Common RDP Vulnerabilities and Fixes
- Brute-force attacks: use an account lockout policy and long passphrases.
- Credential theft: use MFA so a stolen password is not enough.
- Protocol exploits: keep Windows updated and keep NLA turned on.
- Unsafe configurations: review your RDP settings regularly and turn off unused features.
RDPextra Windows RDP
RDPextra’s Windows RDP plans run on Windows Server, and our support team can help you lock down access after delivery. For more on this topic, see RDP vs VPN, RDP botnet attacks and 11 best practices to secure remote desktop access.
Frequently Asked Questions
Changing the port only hides RDP from simple scans and is not real protection. The safer approach is to keep RDP off the internet, use a VPN or RD Gateway, and enable NLA and MFA.
A VPN or an RD Gateway is the recommended way. It keeps port 3389 closed to the internet and lets you add MFA in front of RDP.
NLA makes the user authenticate before a full RDP session is created. This protects the server from unauthenticated connection attempts and uses fewer resources during an attack.
Open Local Security Policy, go to Account Lockout Policy and set a lockout threshold, for example 5 invalid attempts, with a lockout duration such as 15 minutes.
Conclusion
Secure Windows RDP comes down to a few habits: keep port 3389 off the internet, connect through a VPN or RD Gateway, use NLA and MFA, keep Windows updated and limit who has access.

[…] for both Linux & Windows server OSes (if you run […]