Skip to content
Look up and open a port

Port 3389: Check and securely open the RDP port

Port 3389 is the default port for Microsoft’s Remote Desktop Protocol (RDP). Here you’ll find key details about the port and firewall commands to restrict access selectively.

Built by Justin Schuessler

Try the commands on your own VPS, with root access and your own firewall.

Add multiple ports one at a time, up to 12.

Or choose a preset

Ports

3389/TCPRDP

Remote access · Registered port · OSI layer 7

Remote Desktop for Windows. Newer Windows versions also use UDP 3389 for smoother performance.

IANA: officially registered as ms-wbt-server

Do not expose it to the internet: RDP is constantly scanned for weak passwords and vulnerabilities. Allow access only from your own IP or use a VPN.

Firewall rule (inbound)

At least one port should not be open to everyone. Choose “Specific IP” instead.

Firewall commands

Open port

sudo ufw allow 3389/tcp
Check port
Notes on ufw

For Ubuntu and Debian. ufw creates the rule for both IPv4 and IPv6. If ufw is disabled, allow SSH first (sudo ufw allow 22/tcp), then enable it with sudo ufw enable, or you'll lock yourself out.

On a ZAP-Hosting VPS with an active network firewall, you also need to allow the port in the Customer Panel.

Port 3389 explained

What is port 3389 used for?

Purpose

Port 3389 lets you access the graphical interface of a Windows server or Windows PC via Remote Desktop. RDP transmits the screen, keyboard and mouse, and optionally the clipboard, drives and printers. Newer Windows versions also use UDP 3389 alongside TCP 3389 for smoother transmission. On a Windows VPS, RDP is usually the primary way to manage it.

Origin and standard

RDP was developed by Microsoft and introduced with Windows NT 4.0 Terminal Server Edition. The protocol is not an RFC standard; it is documented in Microsoft’s open specification MS-RDPBCGR. The IANA lists port 3389 under the name “ms-wbt-server” as a registered port. Clients are available for macOS, Linux and mobile devices as well as Windows.

Typical use

  • Managing Windows servers and Windows VPS
  • Remote access to workstations on a company network
  • Remote Desktop Services for multiple users on one server
  • Access through an RD Gateway that tunnels RDP over HTTPS

Security

A publicly accessible port 3389 is one of the most common entry points for ransomware. Attackers deliberately scan the internet for RDP and try weak passwords through brute force. Vulnerabilities such as BlueKeep (CVE-2019-0708) have also allowed attackers to take over unpatched systems without logging in. Never open port 3389 to the entire internet: restrict it to your own IP address, or access RDP through a VPN or SSH tunnel. Also enable Network Level Authentication, use long passwords and account lockouts after failed attempts, and install Windows updates promptly.

More ports

Related ports

These ports are often part of the same setup. Click one to see its explanation and firewall commands.

View all well-known ports and the complete IANA list

Port list source: IANA Service Name and Transport Protocol Port Number Registry, as of October 22, 2026. iana.org

Discover more

More tools

FAQ

Frequently asked questions

Quick answers about port 3389.

In Windows Firewall, you can use PowerShell with New-NetFirewallRule -DisplayName RDP-Admin -Direction Inbound -Protocol TCP -LocalPort 3389 -RemoteAddress 203.0.113.10 -Action Allow. Replace the example IP with your own, then disable the general RDP rule that opens the port to all addresses.

RDP primarily uses TCP 3389. Newer Windows versions also use UDP 3389 for smoother video and audio transmission. RDP still works without UDP, just with slightly lower performance.

No, you should never open port 3389 to the entire internet. Open RDP ports are constantly targeted with login attempts and are a known route for ransomware. Restrict access to your IP or use a VPN.

Using a different port only reduces automated scans; it does not protect against targeted attacks. A port scan will find RDP on another port, too. Restricting access by IP, using a VPN, enabling Network Level Authentication, and installing updates provide real security.

Any more questions?

Contact Support
Your own server?

Try the commands on your own VPS

With a ZAP-Hosting VPS, you have root access, can set up services and firewall rules yourself, and can immediately see which ports are open.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all network tools