What port does RDP use?
RDP uses port 3389 over TCP.
| Port | Protocol | Name | What it is for |
|---|---|---|---|
| 3389 | TCP | RDP | Windows Remote Desktop. |
Exposing it
A primary ransomware entry vector. Put it behind a VPN, require network level authentication, and never expose it directly.
Checking it is listening
sudo lsof -i :3389 # macOS, Linux
netstat -ano | findstr :3389 # Windows
nc -zv host 3389 # from elsewhere
An "address already in use" error on a port nothing appears to be holding usually means the socket is in TIME_WAIT rather than that a process has it — the ports reference covers that and the ephemeral range.
Frequently asked questions
What port does RDP use?
RDP uses port 3389 over TCP. Windows Remote Desktop.
Is port 3389 safe to expose to the internet?
A primary ransomware entry vector. Put it behind a VPN, require network level authentication, and never expose it directly.
How do I check whether RDP is listening?
sudo lsof -i :3389 on macOS or Linux, netstat -ano | findstr :3389 on Windows. From another machine, nc -zv host 3389 says whether anything answers.
Other services
- What port does MySQL use?
- What port does PostgreSQL use?
- What port does SQL Server use?
- What port does Oracle use?
- What port does MongoDB use?
- What port does Redis use?
- What port does Memcached use?
- What port does Elasticsearch use?
- What port does DNS use?
- What port does NTP use?
- What port does SMB use?
- What port does NFS use?