Issue with RDP

Jonathan 500 Reputation points
2026-11-24T04:01:56.9533333+00:00

Hi,

It is OK to use vnc to reach the server but not ok to use rdp. There were no changes on both the client and the server. Why did this happen? I even have rebooted the server but the issue persists. any reasons?

Here is what I've got.

User's image

Here is what I get on the client:

PS C:\Windows\system32> Test-NetConnection -ComputerName SrvIP -Port 3389 WARNING: TCP connect to (SrvIP : 3389) failed

ComputerName : SrvIP

RemoteAddress : SrvIP

RemotePort : 3389

InterfaceAlias : Ethernet

SourceAddress : IP2

PingSucceeded : True

PingReplyDetails (RTT) : 19 ms

TcpTestSucceeded : False

Windows for business | Windows Server | Networking | Network connectivity and file sharing

Answer accepted by question author

AI answer

2026-11-24T04:02:48.75+00:00

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:

  • TermService uses PID 500, matching the process listening on 3389.
  • qwinsta shows rdp-tcp in the Listen state.

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:

  1. Run the same Test-NetConnection from another computer on the server’s local network.
  2. 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.
  3. If this is an Azure VM, verify that its Network Security Group permits inbound RDP to the VM’s subnet or network interface.^1^
  4. 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

  1. Remote Desktop can't connect to the remote computer
  2. General Remote Desktop connection troubleshooting
AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Domic Vo 37,895 Reputation points Independent Advisor
    2026-11-24T06:23:57.7033333+00:00

    Hello

    The server-side screenshot shows that Remote Desktop is listening on TCP port 3389, so the RDP listener is running; this is not currently pointing to a stopped Remote Desktop Services service. However, the client's Test-NetConnection returns TcpTestSucceeded: False, which means the TCP connection cannot be established even though ICMP ping succeeds. Since VNC works and the server responds to ping, the most likely causes are Windows Defender Firewall blocking inbound RDP traffic, an upstream firewall or network ACL filtering TCP 3389, or a network security policy change.

    On the server, please run tasklist /svc /fi "PID eq 500" to confirm that PID 500 actually belongs to TermService, then run qwinsta and verify that rdp-tcp is in the Listen state. Next, open wf.msc, navigate to Inbound Rules, and check whether Remote Desktop - User Mode (TCP-In) is enabled for the active network profile; if disabled, enable the appropriate rule rather than disabling Windows Firewall entirely. From the server itself, test Test-NetConnection -ComputerName 127.0.0.1 -Port 3389, then repeat the test from another computer on the same LAN to isolate whether the problem is local or network-related. If the local test succeeds but the remote test fails, investigate intermediate firewalls, VLAN ACLs, endpoint security software, and network policies for blocked TCP 3389. Could you also confirm whether the RDP connection fails from every client or only this particular client, and whether anything changed in the firewall or network security policies recently?

    If my answer is useful for you, please hit Accept the answer to support me.

    Thank you

    Domic Vo.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.