RDP
RDP port guide: Windows Remote Desktop on port 3389
Understand when RDP should be reachable, how to verify port 3389, and why gateways, MFA, VPNs, and monitoring matter before exposing Remote Desktop.
- Default port
- 3389
- Protocol
- TCP
- Primary use
- Remote desktop services
What is the RDP port?
RDP, or Remote Desktop Protocol, is Microsoft's protocol for interactive Windows desktop sessions. The default RDP port is 3389. TCP 3389 is the core connection path, and modern RDP deployments may also use UDP 3389 to improve graphics, input, and media performance.
3389 is the default Remote Desktop port
Windows clients, admin tools, and many remote support workflows expect RDP to listen on 3389 unless a different port or gateway is configured.
Public RDP is high risk
Exposed RDP is heavily scanned and commonly targeted for brute-force attacks, credential stuffing, ransomware access, and session abuse.
How RDP works
RDP lets a user interact with a remote Windows desktop over the network. The client connects to the RDP service, negotiates security settings, authenticates the user, and then exchanges keyboard, mouse, display, clipboard, audio, and device redirection data depending on policy.
Modern RDP can use Network Level Authentication, TLS, gateways, and enterprise identity controls, but the port itself is still only the transport entry point. A reachable 3389 port does not mean the deployment is safe; it only means remote clients can attempt to start an RDP session.
When you should open RDP access
Open RDP only when administrators, support teams, or controlled remote workers need interactive access to Windows systems. Even then, direct internet exposure should be a last resort. Prefer Remote Desktop Gateway, VPN, zero-trust access, bastion hosts, or private network connectivity.
If a cloud VM needs occasional emergency access, consider just-in-time firewall rules, temporary source-IP allowlists, or provider serial console features instead of leaving 3389 open around the clock.
TCP 3389 vs UDP 3389
TCP 3389 is the primary RDP path and is the first port most connectivity checks validate. If TCP 3389 is blocked, a direct Remote Desktop session usually cannot start. A TCP port checker is therefore useful for confirming the basic path to the RDP service.
UDP 3389 can be used by modern RDP clients to improve responsiveness, graphics, audio, and lossy-network behavior after the session is established. Blocking UDP may not prevent every RDP login, but it can make sessions feel slower or less stable. Gateways and enterprise policies may handle this differently, so test the actual client path.
Before opening port 3389
Before opening port 3389, enable Remote Desktop intentionally, require Network Level Authentication, confirm which users are allowed to sign in, and decide whether clipboard, drive, printer, and device redirection should be permitted. These policy choices matter as much as the firewall rule.
A port checker can show whether TCP 3389 is reachable from the internet, but it cannot confirm that the RDP login flow, gateway policy, user rights, MFA, or session restrictions are configured correctly. Test both network reachability and actual Remote Desktop behavior.
How to enable RDP on Windows and cloud servers
On Windows Server or Windows Pro, enable Remote Desktop, require Network Level Authentication, and allow inbound TCP 3389 in Windows Defender Firewall. Confirm that the user belongs to an allowed Remote Desktop group and that local security policy does not block remote sign-in.
For cloud servers, open 3389 only to trusted source IP ranges in the cloud security group or firewall policy. If possible, use a VPN, private subnet, bastion, or Remote Desktop Gateway so the VM itself is not directly reachable from the public internet.
RDP is primarily a Windows protocol, but clients exist for macOS, Linux, iOS, Android, and browsers through gateways. The server-side exposure and security model still need to be controlled on the Windows host or gateway.
- Service layer: Remote Desktop Services must be enabled and listening on the expected TCP port.
- Network layer: Windows Firewall, cloud security groups, router NAT, and VPN policies must match the intended access path.
- Identity layer: allowed users, NLA, MFA, password policy, account lockout, and privileged groups must be reviewed.
- Session layer: clipboard, drive redirection, printer redirection, idle timeouts, and logging should match the risk level.
How to test RDP connectivity
Start with an external port check against the public hostname or IP address and port 3389. If the port is open, the TCP path to the RDP service is reachable. Then test with Microsoft Remote Desktop, mstsc.exe, or your gateway client to confirm the login and session policy.
On the Windows host, verify that Remote Desktop Services is running and that Windows Defender Firewall has the expected inbound rule. In cloud environments, compare the host firewall with the cloud security group because either one can block access.
Common RDP troubleshooting cases
If port 3389 is closed, Remote Desktop may be disabled, the service may be stopped, the port may have been changed, or Windows Firewall may be blocking inbound connections. If the check times out, cloud firewall rules, router NAT, VPN policy, ISP filtering, or source-IP allowlists may be dropping packets.
If the port is open but sign-in fails, inspect user rights, NLA requirements, expired passwords, account lockout, domain connectivity, MFA policy, gateway rules, and event logs. A working port does not guarantee the user is authorized to create a session.
Security checklist for RDP
Avoid exposing RDP directly to the internet. Use Remote Desktop Gateway, VPN, private networks, bastion hosts, or zero-trust access. Require MFA wherever possible, enforce account lockout, disable unused accounts, and monitor failed sign-ins and unusual source locations.
Patch Windows regularly, restrict local administrator membership, disable unnecessary redirection features, set idle session timeouts, and collect security event logs. For high-risk systems, prefer privileged access workstations or managed admin paths instead of direct RDP from personal devices.
Frequently asked questions
What port does RDP use?
RDP uses port 3389 by default. TCP 3389 is the core connection path, and modern RDP can also use UDP 3389 for improved session performance.
Do I need UDP 3389 for RDP?
Not always, but it can improve performance for modern Remote Desktop sessions. If TCP 3389 works but the session feels slow or unstable, check whether UDP 3389 is allowed by the client path, gateway, host firewall, and network policy.
Is it safe to open port 3389?
Directly exposing 3389 to the internet is high risk. Use VPN, Remote Desktop Gateway, source-IP restrictions, MFA, lockout policy, and monitoring if RDP access is required.
Why is port 3389 open but Remote Desktop fails?
The network path may work while authentication or session policy fails. Check user rights, NLA, password state, account lockout, gateway policy, domain connectivity, and Windows event logs.
Should I change the RDP port?
Changing the port can reduce background scans, but it is not a real security boundary. Strong authentication, restricted access paths, MFA, patching, and logging are more important.