220-1102Chapter 36 of 131Objective 1.5

Remote Desktop Protocol (RDP)

This chapter covers Remote Desktop Protocol (RDP), a core technology for remote administration and remote access in Windows environments. For the CompTIA A+ 220-1102 exam, RDP appears in Objective 1.5 (Given a scenario, use Remote Access technologies) and is a frequent topic on the exam, appearing in roughly 5-8% of questions. You will need to know its default port, how to enable it, security considerations, and how it differs from other remote access methods like VNC or SSH. This chapter provides a deep dive into RDP mechanics, configuration, and exam-specific traps.

25 min read
Intermediate
Updated May 31, 2026

RDP: The Remote Control Car

Imagine a remote-controlled car where you have a transmitter (the RDP client) and the car itself (the RDP host). The transmitter sends commands to the car's receiver, which then drives the motors. In RDP, the client sends keyboard and mouse inputs over the network to the remote host. The host's operating system processes these inputs as if they came from a locally attached keyboard and mouse. The host then renders the graphical output (the desktop) and sends back compressed screen updates to the client. This is like the car transmitting its camera feed back to the transmitter's screen. The transmitter doesn't run the car's motors directly; it sends signals that the car interprets. Similarly, the RDP client doesn't run applications locally; it receives a video stream of the remote desktop. The car analogy breaks down if you think of the transmitter as having a direct wire to the motors—RDP uses a protocol (TCP 3389) to encapsulate input and output, and it uses encryption to secure the channel, just like a secure radio frequency.

How It Actually Works

What is RDP and Why It Exists

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft that provides a graphical interface to connect to another computer over a network connection. It allows a user to remotely control a Windows desktop or server as if they were sitting in front of it. RDP is widely used for remote administration, help desk support, and remote work. The protocol operates at the application layer (Layer 7) of the OSI model and uses TCP port 3389 by default. RDP supports multiple simultaneous sessions (on server OS versions) and can also be used for remote assistance (Quick Assist) and virtual desktop infrastructure (VDI).

How RDP Works Internally

RDP uses a client-server architecture. The client (mstsc.exe on Windows, or third-party clients) initiates a connection to the RDP server (TermService on Windows). The process involves several phases:

1.

Connection Initiation: The client sends a TCP SYN packet to port 3389 on the server. After the TCP three-way handshake, the client and server negotiate the RDP protocol version and capabilities (e.g., encryption level, supported graphics formats, number of monitors).

2.

Authentication: The server requests credentials. The client sends username and password (or smart card, or network-level authentication - NLA). NLA is enabled by default on modern Windows versions and uses CredSSP (Credential Security Support Provider) to authenticate before a full RDP session is established. This prevents many denial-of-service attacks.

3.

Session Creation: Once authenticated, the server creates a new session for the user. On Windows client OS (Windows 10/11), only one concurrent user session is allowed (the local user is disconnected if another logs in remotely). On Windows Server, multiple concurrent sessions are allowed. The session has its own virtual desktop, clipboard, drives, printers, etc., mapped from the client.

4.

Graphics Output: The server renders the desktop and applications in the session and encodes the screen changes using RDP graphics primitives. These are sent to the client as a compressed stream. The client decodes and displays the image. To reduce bandwidth, RDP uses techniques like caching of bitmaps, incremental updates, and support for remoteFX (GPU virtualization) on newer versions.

5.

Input Handling: The client captures keyboard and mouse input and sends it to the server as input PDUs (protocol data units). The server injects these inputs into the session as if they came from a local device.

6. Redirection: RDP supports redirection of local resources to the remote session. This includes: - Clipboard: Bi-directional copy/paste. - Drives: Local drives can be mapped as network drives in the remote session. - Printers: Local printers can be used. - Ports: Serial and parallel port redirection. - Audio: Playback and recording redirection. - Smart Cards: For authentication.

Key Components, Values, and Defaults

Default Port: TCP 3389. UDP 3389 is also used for RemoteFX and network-level latency optimization, but TCP is primary.

RDP Version: Current version is 10.0 (Windows 10/11 and Server 2016/2019/2022). Older versions have different capabilities.

Encryption: RDP supports 128-bit encryption using RC4 or TLS (if configured). By default, RDP uses native RDP encryption (RC4) but can be set to use TLS 1.2/1.3 for enhanced security.

Network Level Authentication (NLA): Enabled by default on Windows 7+ and Server 2008 R2+. Requires the client to authenticate before a full RDP connection is established. This reduces the attack surface.

Session Limits: Windows client OS allows only one remote session at a time (the console session is disconnected). Windows Server allows up to two administrative sessions by default (without Remote Desktop Services licensing), but unlimited with RDS CALs.

Idle Timeout: By default, idle sessions are disconnected after a configurable time (default is 0 = never, but group policy can set it).

Group Policy Settings: RDP settings are managed via 'Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host'.

Configuration and Verification Commands

Enable RDP via GUI:

System Properties > Remote tab > Allow remote connections to this computer.

Or: Settings > System > Remote Desktop > Enable Remote Desktop.

Enable via PowerShell:

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

Check RDP Status:

Get-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' | Select-Object fDenyTSConnections

If fDenyTSConnections = 0, RDP is enabled.

Test Port Connectivity:

Test-NetConnection -ComputerName <IP> -Port 3389

Or using telnet:

telnet <IP> 3389

If blank screen, port is open.

Change RDP Port: Modify registry: HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp > PortNumber (change to desired port). Then restart the service and update firewall rules.

Connect via Command Line:

mstsc /v:<IP> /f

/f forces full screen.

How RDP Interacts with Related Technologies

VPN: RDP is often used over VPN for remote access to corporate networks. VPN provides an encrypted tunnel, and RDP adds another layer of encryption.

Firewalls: RDP must be allowed through firewalls. In Windows, the built-in firewall rule is 'Remote Desktop (TCP-In)'.

NAT: RDP can be forwarded through NAT routers via port forwarding (external port -> internal IP:3389). This is common for home networks.

RD Gateway: Allows RDP connections over HTTPS (port 443) to traverse firewalls without opening 3389. The gateway acts as a proxy.

Remote Assistance: Uses RDP but with a different model (invitation-based). It allows a helper to view or control the user's desktop with permission.

Virtual Desktop Infrastructure (VDI): RDP is used to connect to virtual desktops hosted on Hyper-V or VMware, often brokered by Remote Desktop Connection Broker.

Security Considerations

Change Default Port: Reduces automated attacks.

Use NLA: Prevents many brute-force attacks because authentication happens before session creation.

Use Strong Passwords: RDP is vulnerable to brute-force attacks if weak passwords are used.

Account Lockout Policies: Implement to limit brute force attempts.

Two-Factor Authentication: Via RD Gateway or third-party solutions.

Limit Users: Only allow specific users or groups via the Remote Desktop Users group.

Disable RDP When Not Needed: Many attacks target open RDP ports.

Use VPN or RD Gateway: Avoid exposing RDP directly to the internet.

Common Issues and Troubleshooting

Cannot Connect: Check if RDP is enabled, firewall is blocking, service is running (TermService), and network connectivity.

CredSSP Error: Occurs when client and server have mismatched encryption oracle settings. Fix by updating both or modifying Group Policy (not recommended for security).

Licensing Issues: On Server OS, if RDS licensing is not configured, connections may be denied after 120 days.

Black Screen After Login: Often due to graphics driver issues or profile corruption. Can be fixed by restarting the session or updating drivers.

Slow Performance: Reduce display settings (color depth, resolution), disable wallpaper, enable persistent bitmap caching.

Exam-Relevant Details

The CompTIA A+ 220-1102 exam expects you to know that RDP uses port 3389 (TCP).

You must know how to enable RDP on Windows client and Server.

Understand that RDP is built-in on Windows Pro and Enterprise editions (not Home).

Know that NLA is a security feature that requires authentication before session creation.

Be able to compare RDP with other remote access tools: VNC (cross-platform, no encryption by default), SSH (command-line only), and third-party tools like TeamViewer (uses its own protocol).

Recognize that RDP can be used for remote administration and remote assistance.

Know that the Remote Desktop Services service must be running.

Understand that RDP supports multiple monitors and resource redirection.

Conclusion

RDP is a critical technology for Windows remote access. For the exam, focus on port numbers, enabling/disabling, security best practices, and differences from other protocols. Hands-on practice with enabling RDP and connecting will solidify your understanding.

Walk-Through

1

Enable RDP on the Host

On the target Windows computer, open System Properties (right-click This PC > Properties > Remote settings). Under the Remote tab, select 'Allow remote connections to this computer'. Ensure 'Allow connections only from computers running Remote Desktop with Network Level Authentication' is checked for security. This enables the Terminal Services service and opens the firewall port 3389 automatically. Alternatively, you can enable via Settings > System > Remote Desktop > toggle on. On Windows Home editions, RDP is not available as a host; you must use Pro or Enterprise.

2

Verify Firewall Rules

The Windows Defender Firewall must allow inbound RDP traffic. When you enable RDP via the GUI, the firewall rule 'Remote Desktop (TCP-In)' is automatically enabled. To verify, open Windows Defender Firewall with Advanced Security and check that the rule is active. If you manually disabled it, RDP connections will fail even if the service is running. You can also enable the rule via PowerShell: `Enable-NetFirewallRule -DisplayGroup 'Remote Desktop'`. For custom ports, you must create a new inbound rule.

3

Configure User Permissions

Only users in the 'Remote Desktop Users' group can connect via RDP. By default, administrators have access. To add a user, open System Properties > Remote tab > Select Users, then add the user or group. Alternatively, use the Local Users and Groups MMC (lusrmgr.msc) to add users to the group. If a user is not in this group, they will receive an access denied error even with correct credentials. On domain-joined computers, domain users can be added via Group Policy.

4

Connect from the Client

On the client computer, open Remote Desktop Connection (mstsc.exe). Enter the IP address or hostname of the remote computer. You can also specify the port if changed: IP:Port. Click Connect. If NLA is enabled, you will be prompted for credentials before the connection is fully established. After authentication, the remote desktop will appear. You can adjust display settings (full screen, resolution), redirect local resources (drives, printers), and save the connection as an .rdp file for future use.

5

Troubleshoot Connection Issues

If connection fails, check the following: (1) Is RDP enabled on the host? (2) Is the host reachable? Ping the IP. (3) Is port 3389 open? Use `Test-NetConnection -ComputerName host -Port 3389`. (4) Is the Remote Desktop Services service running? Run `services.msc` and check 'Remote Desktop Services' is started. (5) Are credentials correct? Verify the user is in Remote Desktop Users group. (6) Are there network firewalls (corporate, ISP) blocking the port? (7) Check Event Viewer under 'Applications and Services Logs > Microsoft > Windows > TerminalServices-RemoteConnectionManager > Operational' for error codes.

What This Looks Like on the Job

Enterprise Scenario 1: Help Desk Remote Support

A large enterprise with 5,000 employees uses RDP for help desk technicians to remotely assist users. The company deploys a Remote Desktop Gateway (RD Gateway) to allow RDP connections over HTTPS (port 443) without exposing internal RDP ports to the internet. Technicians connect to the gateway using their domain credentials, and the gateway proxies the connection to the target machine. This setup uses NLA and requires the technician to be in the Remote Desktop Users group on the target machine. Performance considerations include bandwidth: RDP graphics can be heavy, so they use Group Policy to set the desktop background to none and reduce color depth to 16-bit. Common issues include CredSSP errors when client or server are not updated, and license expiration on the RD Gateway (requires RDS CALs). Misconfiguration often occurs when the firewall rule for RD Gateway is not properly set, or when the technician's account lacks permissions on the target machine.

Enterprise Scenario 2: Remote Work for Developers

A software company allows developers to work from home using RDP to connect to their office workstations. Each developer has a Windows 10 Pro machine at the office with RDP enabled. They connect via a VPN first (for encryption) and then use RDP. The company enforces a Group Policy to disconnect idle sessions after 15 minutes to free up resources. They also use account lockout policies to prevent brute-force attacks. Performance is generally good over VPN, but issues arise when developers use high-resolution monitors (4K) and expect smooth graphics. They mitigate by enabling RemoteFX (if supported) or using RDP 10 with improved codec support. Misconfiguration occurs when the VPN is not connected before RDP, or when the developer's home ISP blocks port 3389 (solved by using RD Gateway).

Scenario 3: Server Administration

A cloud service provider manages hundreds of Windows Server 2019 instances using RDP. They use a jump box (bastion host) with RDP enabled, and all other servers are accessible only from the jump box via internal IPs. They change the default RDP port on the jump box to a non-standard port to reduce automated attacks. They also use two-factor authentication via a third-party solution integrated with RD Gateway. Performance is critical: they use Group Policy to optimize for low bandwidth (disable animations, menu effects). Common issues include licensing: after 120 days, if no RDS CALs are installed, connections are denied. They also monitor Event ID 4625 (failed logon) for brute-force attempts. Misconfiguration often involves forgetting to update the firewall rule after changing the port, or not adding the admin's account to the Remote Desktop Users group on the jump box.

How 220-1102 Actually Tests This

What the 220-1102 Exam Tests on RDP

The CompTIA A+ 220-1102 exam covers RDP under Objective 1.5: 'Given a scenario, use Remote Access technologies.' Specifically, you must know:

Default port: TCP 3389.

How to enable/disable RDP on Windows client and Server.

Security features: Network Level Authentication (NLA) and its benefits.

Differences between RDP and other remote access methods (VNC, SSH, third-party tools).

That RDP is built into Windows Pro, Enterprise, and Server editions, but not Windows Home.

Basic troubleshooting: checking service status, firewall rules, and user permissions.

Common Wrong Answers and Why Candidates Choose Them

1.

Default port is 23 (Telnet): Candidates confuse RDP with Telnet. Telnet uses port 23 and is unencrypted; RDP uses 3389 and is encrypted. The exam may list 23 as a distractor.

2.

RDP works on any Windows edition: Many think Windows Home supports RDP hosting. It does not; only Pro and above. Home can only connect as a client.

3.

RDP uses UDP only: While RDP can use UDP for RemoteFX, the primary protocol is TCP. The exam expects TCP 3389.

4.

NLA is optional but not important: Some think NLA is just an extra step. In reality, NLA reduces attack surface by authenticating before session creation. The exam emphasizes its security benefit.

5.

Changing the port eliminates all security risks: Candidates may think changing the port makes RDP invulnerable. In reality, it only reduces automated scans; targeted attacks will still find it. Security requires additional measures like VPN or RD Gateway.

Specific Numbers and Terms That Appear on the Exam

Port 3389 (TCP) – memorize this.

Network Level Authentication (NLA) – know what it does (authenticates before session).

Remote Desktop Users group – only members can connect.

mstsc.exe – the client executable.

TermService – the service name.

Group Policy – used to configure RDP settings.

CredSSP – the protocol used for NLA.

Edge Cases and Exceptions

Windows Home: Cannot host RDP sessions; can only connect as client.

Multiple sessions: Only on Server OS; client OS disconnects the local user when a remote user logs in.

RDP over VPN: Common scenario; VPN provides encryption, but RDP still uses its own encryption.

RDP and firewalls: The built-in Windows Firewall rule is 'Remote Desktop (TCP-In)'. If using a third-party firewall, you must allow port 3389.

RDP and NAT: Port forwarding required; external port can be different from internal.

How to Eliminate Wrong Answers

If a question asks about remote desktop on Windows, look for port 3389 in the answer choices. Eliminate any that mention 23, 80, 443 (unless RD Gateway).

If the question asks about security, NLA is almost always the correct answer.

If the question mentions 'Home edition', remember that it cannot host RDP.

For troubleshooting, think of the three most common issues: service not running, firewall blocking, user not in Remote Desktop Users group. Eliminate answers that suggest exotic causes first.

Always remember that RDP is graphical; if the question is about command-line remote access, the answer is SSH or Telnet, not RDP.

Key Takeaways

RDP uses TCP port 3389 by default.

Only Windows Pro, Enterprise, and Server can host RDP sessions; Home cannot.

Network Level Authentication (NLA) is enabled by default and requires authentication before session creation.

The Remote Desktop Users group controls who can connect via RDP.

The Remote Desktop Services service (TermService) must be running on the host.

RDP supports resource redirection: clipboard, drives, printers, and more.

To change the RDP port, modify the PortNumber registry value under HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.

RDP can be secured by using strong passwords, NLA, VPN, or RD Gateway.

The client executable is mstsc.exe.

Windows Server allows multiple concurrent RDP sessions; Windows client disconnects the local session.

Common troubleshooting steps: check service status, firewall rules, user permissions, and network connectivity.

RDP is graphical; for command-line remote access, use SSH or Telnet.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

RDP (Remote Desktop Protocol)

Uses TCP port 3389 by default.

Built into Windows Pro/Enterprise/Server; no additional software needed.

Supports NLA for pre-authentication security.

Supports resource redirection (clipboard, drives, printers).

Optimized for low bandwidth with bitmap caching and compression.

VNC (Virtual Network Computing)

Typically uses port 5900 for VNC server, plus display number (e.g., 5901 for :1).

Cross-platform; works on Windows, Linux, macOS, etc.

No built-in authentication mechanism; often relies on separate security (e.g., SSH tunnel).

Does not natively support resource redirection; third-party implementations may vary.

Less efficient; often requires more bandwidth for similar quality.

Watch Out for These

Mistake

RDP uses port 3389 for both TCP and UDP, but UDP is the default.

Correct

RDP primarily uses TCP port 3389. UDP 3389 is used optionally for RemoteFX and network-level latency optimization, but it is not the default. The CompTIA exam expects TCP 3389 as the standard port.

Mistake

You can use RDP to connect to any edition of Windows, including Home.

Correct

Windows Home editions do not support hosting RDP sessions. They can only connect as a client. To host RDP, you need Windows Pro, Enterprise, or Server. This is a common exam trap.

Mistake

Enabling RDP automatically opens all necessary firewall ports.

Correct

Enabling RDP via the GUI does add the Windows Firewall rule for TCP 3389. However, if you change the default port or have a third-party firewall, you must manually configure it. Also, the rule is for inbound traffic; outbound is usually allowed by default.

Mistake

RDP is completely secure because it uses encryption.

Correct

RDP uses encryption (RC4 or TLS), but it is still vulnerable to brute-force attacks if weak passwords are used. NLA adds security by authenticating before session creation. Best practice is to use VPN or RD Gateway and strong passwords.

Mistake

You need to install Remote Desktop Services on Windows 10 to use RDP.

Correct

RDP hosting is built into Windows 10 Pro and Enterprise. You do not need to install any additional role. The 'Remote Desktop Services' role is only required on Windows Server for multiple concurrent sessions or VDI.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What port does RDP use?

RDP uses TCP port 3389 by default. It can also use UDP 3389 for RemoteFX, but TCP is the primary protocol. The exam expects you to know TCP 3389. If you change the port, you must update the firewall and specify the new port when connecting (e.g., mstsc /v:IP:Port).

How do I enable RDP on Windows 10?

Go to Settings > System > Remote Desktop and toggle 'Enable Remote Desktop' on. Alternatively, go to System Properties > Remote tab and select 'Allow remote connections to this computer'. You must be on Windows 10 Pro or Enterprise; Home edition cannot host RDP. The firewall rule is automatically enabled.

What is Network Level Authentication (NLA) in RDP?

NLA is a security feature that requires the user to authenticate before a full RDP session is established. It uses CredSSP to perform authentication early, reducing the risk of denial-of-service attacks and brute-force attempts. It is enabled by default on Windows 7 and later. Disabling NLA is not recommended.

Why can't I connect to a Windows Home computer via RDP?

Windows Home editions do not include the RDP host functionality. They can only connect as a client to other RDP hosts. To host RDP, you need Windows Pro, Enterprise, or Server. This is a common exam trap.

How do I allow a user to connect via RDP?

Add the user to the 'Remote Desktop Users' group. On the host computer, open System Properties > Remote tab > Select Users, then add the user. Alternatively, use lusrmgr.msc to add to the group. Administrators have access by default.

What is the difference between RDP and Remote Assistance?

RDP is for direct remote control of a computer with authentication. Remote Assistance (also based on RDP) allows a user to invite a helper to view or control their desktop. Remote Assistance requires the user's permission and can be initiated via Quick Assist or Windows Remote Assistance.

Can I change the RDP port from 3389?

Yes, you can change the port by modifying the registry: HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp > PortNumber (DWORD). Change the value to the desired port (e.g., 3390). Restart the Remote Desktop Services service and update the firewall rule. Then connect using IP:Port.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Remote Desktop Protocol (RDP) — now see how well it sticks with free 220-1102 practice questions. Full explanations included, no account needed.

Done with this chapter?