I tried to connect to my VPS on Google's VPS service, which is Windows 2008 service pack 1 based, and found this error: ''Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again.''
1 Answer
This is the common error with Windows Server 2008 SP1, here you can find more information from Microsoft and it's not related to the Google Compute Engine.
When a user remote controls another user's session using Remote Desktop Services Manager or Terminal Services Manager on a Windows Server 2008-based computer, and then stops remote controlling, one or both sessions are disconnected with the mentioned error.
CAUSE
This problem occurs if Remote Desktop Connection Client version 6.0.6001 or 6.0.6002 is used with the highest RDP Compression setting. Windows Server 2008 SP1/SP2 defaults to a lower RDP Compression setting, and thus will only exhibit the above symptoms if the setting has been changed to "Optimized to use less network bandwidth", which is the maximum. Windows Server 2008 R2 defaults to the maximum RDP Compression setting.
WORKAROUND
Change the RDP Compression setting on the server to "Balances memory and network bandwidth" (recommended) or "Optimized to use less memory" using Group Policy. If using Windows Server 2008 R2 you may also choose "Do not use an RDP compression algorithm".
You can solve this problem following this guideline for Windows Server 2008 (SP1 or SP2) from here:
Logon to the Terminal Services computer as an Administrator
Start->Run
gpedit.msc
, clickContinue
if prompted by UACIn the left pane, under Computer Configuration, navigate to following:
Administrative Templates\Windows Components\Terminal Services\Terminal Server\Remote Session Environment
In the right pane, double-click on
Set compression algorithm for RDP data
Select
Enabled
, and chooseBalances memory and network bandwidth
Click
OK
to save the change
On the other hand, the cause of that issue could be low amount of available RAM, or limited free space on the system volume or volume with swap-file drive on your VPS you're trying to connect to - check available resources of your VPS and/or decrease quality setting for RDP connection.
-
1If the answer was useful, please mark the answer as accepted for greater visibility for community or can you post the procedure you've followed as Solution and accept it. Dec 29, 2021 at 10:54