Remote desktop connection protocol error 0x112f [closed]
Asked Answered
P

9

58

When I try to connect to Windows 2012 Server using Remote Desktop Connection, I'm connected for about 1 sec. and then disconnected with following error:

Because of a protocol error (code: 0x112f), the remote session will be disconnected.

Until yesterday, connection was working fine with no error, no server changes. I never saw this error before. I tried to lower visual appearance settings in Experience panel (found as possible solution to similar error), but with no result.

Personalism answered 14/7, 2015 at 9:7 Comment(2)
You can just try to restart 'Remote Desktop Serivces' service at Services list window(Win + R -> services.msc -> Enter) and then try to reconnectTwospot
Hello. This Q&A really helped me today. I would like to migrate to superuser site, but it will probably be denied due to closed here. Idea: How about you create new question on superuser and post a link here? I don't want to steal your "Internet Points"! Then we can get other users to post again.Sabbath
P
16

Server restart helped, I'm able to connect to server again.

Personalism answered 14/7, 2015 at 12:7 Comment(3)
this can also be done remotely if you have the appropriate rights via Sysinternals psshutdownFloatation
Or just shutdown /i, which also gives you a reboot option.Sneaky
Yes, but the error will come again after disconnecting in my case.Finer
M
51

This error may be triggered by insufficient memory on RDP server.

After few tries with this error, RDP managed to get a connection to the server and I was able to stop a bogus service consuming too much memory. This can be done also with sysinternals or sc.

Mcgrath answered 15/11, 2016 at 10:44 Comment(2)
You are Right!. My test program bugged and eat up all memory,and I couldn't connectIndira
In my case, the error was triggered only when I had the "Use all my monitors (2) for the remote session". When I unchecked and used a single monitor I was able to connect and manage the memory on the serverGlarum
F
29

Might not be a solution for all but I found that if I reduced the screen resolution of the RDP session, I was able to get in. The server was at 95% capacity I went from 3 high res monitors to 1 800x600 window.

Fm answered 14/4, 2020 at 8:34 Comment(3)
That is so clever! That worked for me. The remote PC was running 24 instances of Edge and I fell it's leaking memory.Babcock
This was the solution for me, thank you so much! Turns out 3 screens in full screen takes up a lot of memory. I was able to connect after deselecting Use all my monitors for the remote session under the Display tab. Now all I have to do is quit some programs, and I can go back to using my multimonitor setup in fullscreen again!Nanice
An update to this: I have found that if you connect using only one monitor first (uncheck "Use all my monitors for the remote session" in the "Display" tab before connecting), and then connect using all monitors while still being connected with one monitor, the multi-monitor connection will "take over" and successfully connect without the 0x112f error. Hope this helps!Nanice
P
16

Server restart helped, I'm able to connect to server again.

Personalism answered 14/7, 2015 at 12:7 Comment(3)
this can also be done remotely if you have the appropriate rights via Sysinternals psshutdownFloatation
Or just shutdown /i, which also gives you a reboot option.Sneaky
Yes, but the error will come again after disconnecting in my case.Finer
A
9

If the server accessible with RPC (basically, if you can access a shared folder on it), you could free some memory and thus let the RDP service work properly. The following windows native commands can be used:

To get the list of memory consuming tasks:

tasklist /S <remote_server> /V /FI "MEMUSAGE gt 10000"

To kill a task by its name:

taskkill /S <remote_server> /IM <process_image_name> /F

To show the list of desktop sessions:

qwinsta.exe /SERVER:<remote_server>

To close an old abandoned desktop session:

logoff <session_id> /SERVER:<remote_server> 

After some memory is freed, the RDP should start working.

Andress answered 22/2, 2019 at 16:55 Comment(0)
A
3

A simple thing. Disable the vsphere options 3D for the virtual maschine . It works perfect. When you want, reinstall the vm-tools for the virtual maschine.

Adoree answered 28/7, 2019 at 0:29 Comment(1)
I think it should be off or auto, right? This is not clear, please try to rephrase your answer.Gulp
G
2

Resized VM with more memory fixed this issue.

Gallagher answered 12/9, 2019 at 0:23 Comment(0)
A
1

I got the same error recently. I think McX is right it was caused by insufficient memory on RDP server. Here is the solution that works for us.

  1. use sc cmd to get running services on the remote server. Make sure you can use windows explorer to access the remote server \\remote_server.

    sc \\<remote_server> query

  2. find out the service you can stop.

    sc \\<remote_server> stop <service_name>

After stopping one service, the remote desktop works again.

Army answered 3/8, 2018 at 15:20 Comment(0)
A
1

If anyone comes to this thread and has this issue when you remote to a VMware VM with windows 10 1903, disabling 3d in the graphics card worked for me.

Amedeo answered 7/11, 2019 at 3:45 Comment(0)
W
1

There may be a problem with the video adapter. At least that's what I had. I picked up problems immediately after updating Windows 10 to the 2004 version. Disabling hardware graphics — solved the problem.

https://www.reddit.com/r/sysadmin/comments/gz6chp/rdp_issues_on_2004_update/

Whitted answered 16/7, 2020 at 17:13 Comment(4)
I got the protocol error 0x122f ONLY when reconnecting after disconnecting while flagged "Use all my monitors...". Disabling those two values solved the problem. (RDP From Windows 10 to WIndows 10.) Thank you so much for this answer!Finer
Hell continues. After some updates, it started to fall off again. John-L's solution makes sense. I also found the following crutch: (the bug appears in the "use all monitors" mode) I created a single-screen connection profile and an all-screen connection profile. If you run a single-screen mode and close it, then the multi-screen mode is once again available.Whitted
I again began getting this error. :(Finer
Yes. They broke something again, but in a different way (after the update)Whitted

© 2022 - 2024 — McMap. All rights reserved.