Connecting to a Windows PC using Remote Desktop Protocol (RDP) provides full graphical access for administration and troubleshooting without being physically at the machine.
The target PC runs the Remote Desktop host service, while the local PC uses Remote Desktop Connection (mstsc) to establish an encrypted session over the network, typically using TCP/UDP 3389 with Network Level Authentication (NLA) enabled.
The target PC must support hosting Remote Desktop (for example Windows 10 Pro, Windows 11 Pro, Enterprise, Education, or Windows Server) and must be reachable through firewall and routing rules. Directly exposing 3389 to the public internet increases attack surface; prefer a VPN or RD Gateway for off-site access.
Steps to connect to Remote Desktop on Windows:
- Enable Remote Desktop on the target PC from Settings → System → Remote Desktop.
Hosting Remote Desktop is not available on Windows Home editions.
- Add the intended account under Settings → System → Remote Desktop → Remote Desktop users.
Local Administrators are allowed by default; add non-admin accounts explicitly.
- Allow Remote Desktop inbound through Windows Defender Firewall on the target PC.
Limit the rule to Private or Domain profiles when possible.
- Record the target PC IPv4 address.
ipconfig Ethernet adapter Ethernet: IPv4 Address. . . . . . . . . . . : 192.168.1.100 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1
Use the target PC name instead of an IP when name resolution is available.
- Connect the local PC to the target network.
Use a VPN when connecting from outside the local network.
- Forward TCP/UDP 3389 to the target PC only when access must come from the internet.
Direct internet exposure of RDP is aggressively scanned and brute-forced; prefer a VPN or RD Gateway, or restrict inbound access to known source IPs.
- Test TCP 3389 reachability from the local PC.
PS C:\> Test-NetConnection -ComputerName 192.168.1.100 -Port 3389 ComputerName : 192.168.1.100 RemoteAddress : 192.168.1.100 RemotePort : 3389 InterfaceAlias : Ethernet SourceAddress : 192.168.1.50 TcpTestSucceeded : True
- Open the Run dialog on the local PC.
Use Windows + R to open Run quickly.
- Launch Remote Desktop Connection by running mstsc.

- Enter the target PC name or IPv4 address in the Computer field.

- Start the connection by selecting Connect.

- Authenticate with an account permitted for Remote Desktop.
Use COMPUTERNAME\username for a local account, DOMAIN\username for a domain account, or the Microsoft account email address when applicable.
- Confirm the remote computer identity prompt if shown.
Only accept the prompt when the computer name or certificate thumbprint matches expectations.
- Verify the remote session is active from the connection bar.

- Sign out from the remote session when finished.
Disconnect leaves programs running on the remote PC, while Sign out ends the session.
Mohd Shakir Zakaria is a cloud architect with deep roots in software development and open-source advocacy. Certified in AWS, Red Hat, VMware, ITIL, and Linux, he specializes in designing and managing robust cloud and on-premises infrastructures.
