In this Azure tutorial, we will discuss how to fix the error with the code 0x112d, i.e., Because of protocol error (code 0x112d) the remote session will be disconnected, which comes while trying to connect the Azure virtual machine using RDP.
I got the above error while connecting to my Azure virtual machine using the RDP option.
The complete error message is
Because of protocol error (code 0x112d) the remote session will be disconnected. Please try connecting to the remote computer again.
Why this error?
I have two Azure virtual machines (VMs) under the same resource group. Both the VM status is “Running”
Both VMs use the same port, “3389,” so here is the problem. Both are fighting for the same port, “3389”.
The second VM also uses the same port
To fix this protocol error 0x112d, I have stopped one of the Azure virtual machines I am not currently using.
To stop the virtual machine, go to the Overview tab, click on the Stop button, and then click Yes to confirm.
Now, you will see that the VM status is stopped(Deallocated). Check out the screenshot below.
You can assign a different port to the other VM, or if you are not using the other virtual machine, then you can delete it.
Don’t assign the same port to the virtual machine and two different apps.
When I tried connecting to the other Azure virtual machine, I could connect without any issues.
You may like the following Azure tutorials:
- How to access Azure VM (Virtual Machine)
- How to Create Azure VM (Virtual Machine)
- The Remote desktop cannot connect to the remote computer.
In this Azure tutorial, we discussed how to fix the error with the code 0x112d i.e., Because of error (code 0x112d) the remote session will be disconnected. I hope it helped you to fix your issue.
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more