Remote Desktop Protocol (RDP) allows you to remotely access and control a Windows computer. By default, Windows Remote Desktop listens on TCP port 3389. If you need to open port 3389 for RDP, you may need to configure Windows Firewall, your router's port forwarding, or a cloud firewall.
If Remote Desktop works on your local network but fails from the internet, the problem is often related to firewall rules, port forwarding, CGNAT, or Remote Desktop configuration.
This guide explains how to open port 3389 and make Remote Desktop reachable safely.
What Is Port 3389?
Port 3389 is the default network port used by Microsoft Remote Desktop Protocol (RDP) on Windows. RDP normally uses TCP port 3389 for remote desktop connections.
When a computer is directly reachable from the internet, an open TCP port 3389 can allow Remote Desktop connections to that machine. However, an open port does not necessarily mean that RDP is working: Windows Firewall, authentication, network routing, and other security controls can still block the connection.
Step 1 — Enable Windows Remote Desktop (RDP)
On Windows:
- Open Settings
- Go to System → Remote Desktop
- Enable Remote Desktop
- Allow access for your user account
Without Remote Desktop enabled, port 3389 will remain closed.
Step 2 — Allow Port 3389 in Windows Firewall
Open:
Windows Defender Firewall
→ Advanced Settings
→ Inbound Rules
Find:
Remote Desktop (TCP-In)
Ensure the rule is:
- ✅ Enabled
- ✅ Allowed
- ✅ Applied to your network profile
Step 3 — Configure Port 3389 Port Forwarding
If connecting from outside your home network:
- Router Admin Panel
- Port Forwarding
- External Port: 3389
- Internal Port: 3389
- Protocol: TCP
- Target Device: your Windows machine IP
Example:
External:
3389 TCP
↓
192.168.1.50:3389
For standard Windows Remote Desktop connections, port 3389 uses TCP.
Step 4 — Test if Port 3389 Is Open From the Internet
Testing internally can fail because many routers do not support NAT loopback. Use:
- Mobile data
- Another internet connection
- External port testing tools
🌐 Verify External Access
Check if port 3389 is reachable from the public internet.
Check Port Status →Port 3389 Open but Remote Desktop Still Doesn't Work?
Common causes:
Security Warning
Exposing RDP directly to the internet increases attack surface. Safer options:
- 🔒 VPN before RDP
- 🛡 Restrict source IPs
- 🔑 Strong passwords + MFA
- 🔀 Use a non-default external port if appropriate to reduce automated scanning noise
- 📋 Enable account lockout policies
Final Checklist
Port 3389 FAQ
What is port 3389 used for?
Port 3389 is the default TCP port used by Windows Remote Desktop (RDP) for remote desktop connections.
Is port 3389 TCP or UDP?
Windows Remote Desktop primarily uses TCP port 3389. Modern RDP connections can also use UDP for improved performance when UDP transport is available.
How do I know if port 3389 is open?
You can test TCP port 3389 from an external network using a port checking tool. Testing from outside your local network is important because local connections may work even when the port is not reachable from the internet.
Is it safe to expose port 3389 to the internet?
Directly exposing RDP to the public internet increases the attack surface of the Windows computer. A VPN, IP restrictions, MFA, strong authentication, and other security controls can reduce the risk.