Remote Desktop Connection Protocol Error 0x112f

Issue

Remote Desktop sessions disconnect shortly after connecting because of a protocol error (code: 0x112f).

Because of a protocol error (code: 0x112f), the remote session will be disconnected. Please try connecting to the remote computer again.

Cause

The exact cause is unknown. However, the issue appears to be related to the use of H.264/AVC hardware encoding for Remote Desktop sessions.

This issue was observed after upgrading to Windows 10 20H2 and NVIDIA GeForce driver version 457.30. The graphics card used at the time was a GeForce GTX 1650.



Resolution

Disable H.264/AVC hardware encoding for Remote Desktop connections.

  1. Open the appropriate Group Policy Object (GPO) or Local Group Policy Editor.

  2. Navigate to the following policy:
  3. 
        Computer Configuration
            └─ Policies
                └─ Administrative Templates
                    └─ Windows Components
                        └─ Remote Desktop Services
                            └─ Remote Desktop Session Host
                                └─ Remote Session Environment
                                    └─ Configure H.264/AVC hardware encoding for Remote Desktop Connections
    
  4. Set the policy to Disabled.

  5. Apply the policy and run a gpupdate /force command on the affected computer.

  6. Restart the computer if the issue persists after Group Policy has been refreshed.

  7. Reconnect using Remote Desktop and verify that session stability has improved.

Additional Information

Disabling H.264/AVC hardware encoding forces Remote Desktop Services to use software-based encoding instead of GPU-based encoding. This may resolve compatibility issues between specific Windows builds and graphics driver versions.

Date Created: Wednesday, 18 November 2020, 11:29 AM