The server is listening on TCP 3389, but the client cannot establish a TCP connection, so troubleshoot the firewall and network path before authentication, user permissions, certificates, or the RDP client.
PingSucceeded: True only confirms basic IP reachability. TcpTestSucceeded: False means TCP 3389 is being blocked, dropped, or rejected somewhere between the client and listener. Microsoft classifies this result as a connectivity issue.^1^
1. Confirm PID 500 belongs to Remote Desktop Services
Through VNC, open an elevated PowerShell or Command Prompt on the server:
tasklist /svc | findstr TermService
netstat -anob | findstr 3389
qwinsta
Expected results:
-
TermServiceuses PID 500, matching the process listening on 3389. -
qwinstashowsrdp-tcpin theListenstate.
If PID 500 belongs to another application, that application has taken the RDP port. Reconfigure that application to use another port, then restart Remote Desktop Services. Microsoft recommends moving the conflicting application rather than changing the RDP port.^2^
2. Enable the Windows Firewall RDP rules
On the server, run this in elevated PowerShell:
Get-NetFirewallRule -DisplayGroup "Remote Desktop" |
Select-Object DisplayName, Enabled, Profile, Direction, Action
Get-NetFirewallRule -DisplayGroup "Remote Desktop" |
Set-NetFirewallRule -Enabled True
Alternatively, open wf.msc → Inbound Rules and enable:
- Remote Desktop - User Mode (TCP-In)
- Remote Desktop - User Mode (UDP-In)
Ensure the TCP rule applies to the server’s active firewall profile. Then rerun from the client:
Test-NetConnection -ComputerName SrvIP -Port 3389 `
-InformationLevel Detailed
The expected result is TcpTestSucceeded : True. Microsoft documents these firewall rules and the PowerShell enablement command for this exact failure branch.^1^
Avoid leaving the entire Windows Firewall disabled; enable only the required RDP rules.
3. Isolate where TCP 3389 is blocked
If the test remains false:
- Run the same
Test-NetConnectionfrom another computer on the server’s local network. - Interpret the result:
- Local test succeeds, original client fails: inspect the routers, VPN, edge firewall, NAT rules, or source-IP restrictions between those networks.
- Local and remote tests both fail: focus on the server firewall, endpoint security software, or an upstream firewall immediately protecting the server.
- If this is an Azure VM, verify that its Network Security Group permits inbound RDP to the VM’s subnet or network interface.^1^
- If endpoint antivirus or security software controls network traffic, inspect its logs and policy for blocked inbound TCP 3389.
Because VNC works and the server has already been rebooted, another reboot is unlikely to distinguish these remaining cases.
4. Test RDP locally on the server
Through VNC, press Win+R, enter mstsc, and connect to:
localhost
- If localhost RDP succeeds, the RDP service is functioning and the remaining fault is on the network path.
- If localhost RDP also fails, investigate the server configuration despite the listening socket, including whether the correct process owns port 3389 and whether Group Policy is blocking RDP.^1^
For Group Policy, generate a report:
gpresult /H C:\gpresult.html
Open the report and inspect:
Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Connections → Allow users to connect remotely by using Remote Desktop Services
If it is Disabled, the report’s Winning GPO identifies the policy that must be corrected.^2^
Do not start certificate, NLA, or user-right troubleshooting until TCP 3389 succeeds; those issues occur after the client reaches the RDP endpoint.
References