Articles » Science and Technology » Software » Windows Remote Desktop: Disconnected Because of a Protocol Error
Windows Remote Desktop: Disconnected Because of a Protocol Error

Windows Remote Desktop: Disconnected Because of a Protocol Error

Windows has a built-in software called Remote Desktop Connection (RDC). This software allows us to open our PC from any place, using a laptop or even a mobile phone ​[1]​. In rare cases, we can’t access our PC, and an error shows up:

Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer 

Reasons

Commonly, this error is due to low memory (RAM) on either the client computer (i.e., the computer in front of you) or the remote server (i.e., the computer you want to connect to). Some applications may hog resources in either one of the computers. Thus, the RDC is not getting enough RAM to start the connection.

RDC requires at least 1024 MB or 1 GB of free memory (RAM) to start the connection ​[2]​. Accordingly, there are two solutions you can try. First, reduce the connection quality. Second, close unnecessary applications.

Solutions to protocol error

Before trying any solutions below, try logging in with a different username (if available) ​[3]​. Although it rarely succeeds, it is worth trying.

Solution 1: quality reduction

On the client computer, open the Remote Desktop Connection. If you can not find any options (as in Fig 1), click ▼ show options. Then, do the following ​[4]​:

  1. Go to the Display tab, then:
    • under Display configuration, set a smaller resolution, and
    • disable Use all my monitors for the remote session option.
    • Under Colors, select the lower color depth (e.g., 15 bit).
  2. Go to the Experience tab, then:
    • select the lower connection speed, and
    • disable all of the visual quality (e.g., Desktop composition and Visual styles).
    • If necessary, also disable the Persistent bitmap caching.
  3. [optional] Go to the Local Resources tab, then:
    • under Remote audio, click Settings..., and
    • disable the audio by selecting Do not play and Do not record.
Remote Desktop options
Fig 1. Remote Desktop options.

Solution 2: close unnecessary applications

On the client computer, open the Task Manager. Under the Performance tab, check the available Memory.

Windows task manager
Fig 2. Windows task manager.

The client computer may have insufficient available memory. Therefore, try closing unnecessary applications (e.g., web browsers and Microsoft Office) until you have at least 1024 MB of available memory. Although, it would be better if you could free up to around 1.5 – 2 GB of memory.

Meanwhile, attempting to close unnecessary applications in the remote server is challenging. Unless, You have a person that is physically close to the remote server ​[5]​. Some people talk about CMD instructions to restart the computer remotely. However, I would not recommend it for two reasons. First, I haven’t found any instructions that work. Second, we don’t know whether any essential applications may still be running and haven’t been saved.

References

  1. [1]
    Microsoft, “How to use Remote Desktop,” Microsoft Support, Apr. 28, 2022. https://support.microsoft.com/en-us/windows/how-to-use-remote-desktop-5fe128d5-8fb1-7a23-3b8a-41e636865e8c (accessed Oct. 19, 2022).
  2. [2]
    E. Kjerland, C. McClister, and D. Eby, “End-user hardware requirements to access a Cloud PC,” Microsoft Learn, Oct. 12, 2022. https://learn.microsoft.com/en-us/windows-365/end-user-hardware-requirements (accessed Oct. 19, 2022).
  3. [3]
    M. Philip, “Remote desktop session disconnection due to protocol error,” Microsoft Learn: Q&A, Jun. 15, 2020. https://learn.microsoft.com/en-us/answers/questions/35829/remote-desktop-session-disconnection-due-to-protoc.html (accessed Oct. 19, 2022).
  4. [4]
    D. Refoua, “Remote desktop session ends abruptly with a ‘protocol error,’” Stack Exchange: Server Fault, Dec. 27, 2017. https://serverfault.com/questions/200700/remote-desktop-session-ends-abruptly-with-a-protocol-error (accessed Oct. 19, 2022).
  5. [5]
    Vomit IT, “Reboot Windows 10 PC remotely,” Stack Exchange: Super User, Feb. 11, 2016. https://superuser.com/questions/1038571/reboot-windows-10-pc-remotely (accessed Oct. 19, 2022).

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.