Free tech learning for everyone, from basics to pro

Port 3389: RDP (Remote Desktop Protocol)

What port 3389 (TCP and UDP) does, the security risks of leaving it open, and how to secure and test it.

Port3389
TransportTCP and UDP
ServiceRemote Desktop Protocol (RDP)
EncryptedYes

What is port 3389?

RDP gives a full remote desktop on a Windows computer or server.

Common uses

  • Administrators managing Windows servers
  • Staff working remotely on office PCs

Security risks

  • One of the most common ways ransomware gangs get in: exposed RDP with weak passwords
  • Password spraying and brute-force attacks
  • Serious vulnerabilities in the past, such as BlueKeep

How to secure port 3389

  • Never expose RDP directly to the internet; put it behind a VPN or Remote Desktop Gateway
  • Turn on Network Level Authentication and multi-factor authentication
  • Lock out accounts after failed attempts
  • Keep Windows patched

How to check if port 3389 is open

WhereCommand
Scan from another machinenmap -p 3389 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 3389
Linux (what is listening)sudo ss -tulpn | grep :3389
Windows (what is listening)netstat -ano | findstr :3389

Only scan systems you own or have permission to test.

Example: block it at the internet edge (Cisco)

For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:

ip access-list extended INTERNET-IN
 remark Block RDP from the internet
 deny   tcp any any eq 3389
 permit ip any any
!
interface GigabitEthernet0/0
 ip access-group INTERNET-IN in

In a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.

Related ports

Frequently asked questions

What is port 3389 used for?

Port 3389 (TCP and UDP) is used by Remote Desktop Protocol (RDP). RDP gives a full remote desktop on a Windows computer or server.

Is it safe to open port 3389?

Only if the service needs to be reached and is configured securely. Never expose RDP directly to the internet; put it behind a VPN or Remote Desktop Gateway.

How do I check if port 3389 is open?

From another computer, run nmap -p 3389 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 3389.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown