Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Windows Server / DNS, DHCP & Server Networking

Check whether the intended Windows RDP endpoint is listening

A running server can reject Remote Desktop because its listener, service or access path is wrong. Inspect the local socket before altering firewall policy.

Compiled for Sorlavit Kim · Published · Updated · 2 min read

Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.

Start with this check

Confirm the host, shell and access role. Replace sample names, paths, domains and interfaces with approved targets. These are diagnostic commands; assess policy and workload impact before making changes.

Get-NetTCPConnection -State Listen -LocalPort 3389

Read the result

In PowerShell on a server using the standard RDP port, this reports a local TCP listener if one exists. Alternate ports and gateways require different checks.

Resolve and verify

Compare the socket and service state with the approved RDP design, then test through the required gateway or private network. Review the actual sign-in error separately.

Before changing production

Do not expose RDP publicly or assume an open socket proves user authorization and Network Level Authentication work.

Share this article

Back to all articles