Port 3389 (RDP): What It Is & Security Guide

May 16, 2026
Updated May 16, 2026 Port Security Guides port 3389 rdp port 3389 security what is port 3389 open port 3389 remote desktop protocol rdp security 3389 vulnerability secure rdp block port 3389 rdp attacks cve-2019-0708 bluekeep

What is Port 3389 (RDP)?

In the vast landscape of network communication, ports serve as virtual doorways, allowing different services and applications to send and receive data. Among these, Port 3389 holds a particularly significant, and often perilous, position. This port is primarily associated with the Remote Desktop Protocol (RDP), a proprietary protocol developed by Microsoft that provides a user with a graphical interface to connect to another computer over a network connection.

For system administrators, IT professionals, and even many home users, RDP is an indispensable tool. It enables seamless remote access to Windows-based machines, allowing users to control a desktop or server from virtually anywhere in the world. Imagine managing a server in a data center thousands of miles away, or accessing your work PC from the comfort of your home – RDP makes this possible, presenting a familiar desktop environment as if you were sitting directly in front of the machine.

However, the very convenience that makes RDP so popular also makes Port 3389 a prime target for cyber attackers. When exposed to the internet without proper security measures, this port becomes a critical vulnerability, a wide-open gateway that malicious actors can exploit to gain unauthorized access, deploy malware, or even take complete control of a system. Understanding Port 3389, its underlying protocol, and the inherent security risks is not just good practice; it's an absolute necessity for anyone responsible for network security in 2025 and beyond.

Want to check your site right now?

Port Scanner →  ·  Website Vulnerability Scanner

Port 3389 Technical Details

To fully grasp the security implications of Port 3389, it's essential to understand its technical underpinnings. Here's a quick overview:

DetailValue
Port Number3389
ProtocolTCP (Transmission Control Protocol)
ServiceRDP (Remote Desktop Protocol)
Risk LevelCritical (when exposed to the internet without proper security)

The Remote Desktop Protocol (RDP) operates primarily over TCP port 3389. While UDP port 3389 can also be used for certain RDP features (like video and audio streaming for improved performance), TCP is the foundational protocol for establishing and maintaining the remote session itself. TCP's connection-oriented nature ensures reliable, ordered, and error-checked delivery of data packets, which is crucial for a stable and responsive graphical interface.

When an RDP client initiates a connection to a server, it typically sends a connection request to port 3389 on the target machine. If the port is open and the RDP service is running, the server responds, and a secure, encrypted channel is established using TLS (Transport Layer Security) by default. This encryption protects the data (including keystrokes, mouse movements, and screen content) transmitted between the client and server from eavesdropping.

Once the connection is established and the user is authenticated (typically with a username and password), the client receives a stream of graphical updates from the server, effectively rendering the remote desktop on the local machine. User input from the client (keyboard, mouse) is sent back to the server, allowing for interactive control. The efficiency of RDP lies in its ability to compress and optimize this graphical data, making remote control feel relatively fluid even over moderate network speeds.

Security Risks of Open Port 3389

The convenience of RDP comes with significant security baggage. An open Port 3389, especially one directly exposed to the internet, is a beacon for attackers. The critical risk level associated with this port stems from the fact that successful exploitation often leads to complete compromise of the target system. Here are the primary security risks:

Common Attacks on Port 3389

Attackers employ various sophisticated and unsophisticated methods to exploit RDP. Understanding these common attack types is crucial for building effective defenses:

How to Check if Port 3389 is Open

Before you can secure Port 3389, you need to know if it's currently open and accessible, either locally or from the internet. Here are several methods to check:

Using Nmap (Network Mapper)

Nmap is a powerful, open-source network scanner that can quickly identify open ports on a target system. It's the go-to tool for many security professionals.

Basic Port Scan:

This command will tell you if port 3389 is open on the target IP address or hostname.

nmap -p 3389 target.com

Service Version Detection:

To get more details about the service running on port 3389 (e.g., Microsoft RDP), use the -sV flag:

nmap -sV -p 3389 target.com

No Ping Scan (useful if ICMP is blocked):

If the target might block ICMP (ping) requests, use -Pn to skip the host discovery phase:

nmap -Pn -p 3389 target.com

Using Online Port Scanners

Online port scanners allow you to check if a port is open on your public IP address from an external perspective. This is crucial for understanding your internet-facing exposure.

For a quick and free online check, you can use the Secably Port Scanner to determine if port 3389 is open on your public IP address. Simply enter your IP or hostname, specify port 3389, and initiate the scan.

Checking on a Windows Machine (Local)

To see if RDP is listening on your local Windows machine:

  • Command Prompt: Open Command Prompt as administrator and run:
    netstat -ano | findstr :3389
    If you see output, it means a process is listening on port 3389. The last column shows the PID (Process ID), which you can use with Task Manager to identify the process.
  • Windows Firewall: Check your Windows Firewall rules (Control Panel > System and Security > Windows Defender Firewall > Advanced settings > Inbound Rules) to see if there's a rule allowing RDP traffic.
  • System Settings: Go to Settings > System > Remote Desktop. Ensure Remote Desktop is turned off if you don't need it.

Checking on a Linux Machine (Local)

If you're running a Linux machine and want to check for RDP (perhaps you're using a tool like xrdp):

  • Netstat/SS:
    sudo netstat -tulnp | grep 3389
    or
    sudo ss -tulnp | grep 3389
  • Firewall (UFW/IPTables): Check your firewall rules:
    sudo ufw status verbose
    or
    sudo iptables -L -n

Regularly checking your port exposure is a fundamental step in maintaining a secure network posture.

Free Security Tools

Scan your website, check open ports, find subdomains — no signup required.

See all tools →

How to Secure Port 3389

Given the critical risks associated with an exposed Port 3389, implementing robust security measures is non-negotiable. Here's a comprehensive guide to hardening your RDP connections:

When Should Port 3389 Be Open?

Despite its security risks, Port 3389 and RDP remain vital tools for many organizations and individuals. There are legitimate and necessary use cases for keeping RDP enabled, provided robust security measures are in place:

  • System Administration and Server Management: IT administrators frequently use RDP to manage remote servers, apply updates, troubleshoot issues, and perform maintenance tasks on Windows servers located in data centers or cloud environments.
  • Remote IT Support: Help desk technicians often use RDP to connect to users' computers to diagnose and resolve software or configuration problems.
  • Work-from-Home (WFH) and Remote Work: Employees may use RDP to access their physical work desktops from home, allowing them to utilize specific software or access internal network resources as if they were in the office. In these scenarios, RDP should always be accessed via a secure VPN.
  • Accessing Virtual Desktops (VDI): In Virtual Desktop Infrastructure (VDI) environments, RDP is a common protocol used by thin clients or personal devices to connect to virtual machines hosted on a server.
  • Specialized Applications: Some legacy or specialized applications may require RDP for remote access or management, especially in industrial control systems (ICS) or specific laboratory setups.

The key takeaway is that while RDP offers immense utility, its exposure must be carefully managed. It should only be 'open' to the internet in a highly controlled manner, ideally through a VPN or with strict firewall rules, strong authentication, and continuous monitoring.

Is port 3389 dangerous?

Yes, port 3389 is considered dangerous if it's open to the internet without proper security measures. It's a frequent target for cyberattacks, including brute-force attempts, credential stuffing, and exploitation of known vulnerabilities like BlueKeep. Successful attacks can lead to full system compromise, ransomware deployment, and lateral movement within a network.

Should I close port 3389?

Generally, yes, you should close port 3389 to the internet unless it is absolutely necessary for your operations. If you require remote access, it's highly recommended to place RDP behind a VPN, use an SSH tunnel, or implement extremely strict firewall rules that only allow connections from specific, trusted IP addresses. If you don't need remote access, disabling RDP entirely is the most secure option.

How do I block port 3389?

You can block port 3389 using your operating system's firewall or a network firewall. Here are common methods:

  • Windows Firewall: Open 'Windows Defender Firewall with Advanced Security'. Go to 'Inbound Rules', find any 'Remote Desktop (TCP-In)' rules, and either disable them or modify their scope to block all remote IP addresses. You can also create a new 'Inbound Rule' to explicitly block TCP port 3389 for all connections.
  • Linux (UFW - Uncomplicated Firewall):
    sudo ufw deny 3389

    This command will block all incoming TCP and UDP traffic on port 3389. Verify with sudo ufw status verbose.

  • Linux (IPTables):
    sudo iptables -A INPUT -p tcp --dport 3389 -j DROP

    This command will drop all incoming TCP packets destined for port 3389. Remember to save your iptables rules (e.g., sudo netfilter-persistent save) to make them persistent across reboots.

  • Network Firewall/Router: Configure your router or network firewall to block incoming connections on port 3389 from the internet (WAN side).

What runs on port 3389 by default?

By default, TCP port 3389 is used by Microsoft's Remote Desktop Protocol (RDP) service. This service allows users to connect to a Windows computer remotely and interact with its graphical desktop interface. While less common, UDP port 3389 can also be used by RDP for certain performance-enhancing features like video and audio streaming.

Scan for these vulnerabilities

Secably automatically detects the issues discussed in this article.

Start Free Scan