node-rdpjs icon indicating copy to clipboard operation
node-rdpjs copied to clipboard

rdp Win2003,show ERROR: NODE_RDP_PROTOCOL_X224_NEG_FAILURE()

Open zhoutianwu opened this issue 8 years ago • 12 comments

rdp Win2003 ,show error: [node-rdpjs] ERROR: NODE_RDP_PROTOCOL_X224_NEG_FAILURE() Error at new ProtocolError (file:///C:/Users/Administrator/Hozz5/app/main.js:138510:9) at Client.recvConnectionConfirm (file:///C:/Users/Administrator/Hozz5/app/main.js:156822:10) at TPKT. (file:///C:/Users/Administrator/Hozz5/app/main.js:156803:9) at TPKT.g (events.js:286:16) at emitOne (events.js:96:13) at TPKT.emit (events.js:188:7) at TPKT.recvData (file:///C:/Users/Administrator/Hozz5/app/main.js:137623:8) at BufferLayer. (file:///C:/Users/Administrator/Hozz5/app/main.js:137614:9) at BufferLayer.g (events.js:286:16) at emitOne (events.js:96:13) at BufferLayer.emit (events.js:188:7) at BufferLayer.recv (file:///C:/Users/Administrator/Hozz5/app/main.js:137821:9) at Socket. (file:///C:/Users/Administrator/Hozz5/app/main.js:137771:10) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:177:18)

zhoutianwu avatar Oct 10 '16 12:10 zhoutianwu

This is because node rdp doesn't support old version of RDP protocol.

citronneur avatar Oct 25 '16 06:10 citronneur

Change the settings on your server like this:

bildschirmfoto_2016-11-04_um_07_53_42

StefanScherer avatar Nov 04 '16 06:11 StefanScherer

Hi,

This is because old RDP protocol is not supported on node-rdpjs.

Sorry

citronneur avatar Jan 02 '17 13:01 citronneur

I set Allow remote connections to this computer. But still it throws same error. Old RDP protocol is not supported on node-rdpjs, so how can we solved this issue. My destination server is windows 2012 r2

Karthikrajit avatar Apr 11 '17 10:04 Karthikrajit

After doing configuration in machine, it works for me. However I have dynamic server creation in cloud and I can't go into server every time and change configuration. Which windows OS is supported @citronneur ?

Following is my windows machine configuration screencapture-localhost-9250-1497511827125

UPDATE : I have checked version of RDP and it shows me 10.2. screencapture-localhost-9250-1497514111871

sonianand11 avatar Jun 15 '17 07:06 sonianand11

@sonianand11 You can add the following line to your provisioning of your cloud servers

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f

After that I was able to use node-rdpjs with a Windows Server 2016 running in Azure.

StefanScherer avatar Jun 15 '17 08:06 StefanScherer

@StefanScherer Thank you for reply. I am also using azure. I am creating windows instance by Ruby SDK . Can you please also suggest which part of configuration I need to add that line ?

sonianand11 avatar Jun 15 '17 08:06 sonianand11

@sonianand11 I don't know the Ruby client, but I can show you how to run scripts within a "Deploy to Azure button" configuration azuredeploy.json I did a while ago in github.com/StefanScherer/docker-windows-azure repo.

StefanScherer avatar Jun 15 '17 08:06 StefanScherer

@StefanScherer Thank you. This helps me. I will look more into it. I will also update if anything works for me via Ruby SDK

sonianand11 avatar Jun 15 '17 08:06 sonianand11

I think ntlm auth la needed but not implemented . In next release.

citronneur avatar Jun 16 '17 21:06 citronneur

What are the roadblocks to supporting older versions of the rdp protocol? I've been wanting to help code something, and I think adding support for this could be a good place to start.

kochecc2 avatar Jul 18 '17 15:07 kochecc2

@sonianand11您可以将以下行添加到您的云服务器配置中

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f

之后,我能够在 Azure 中运行的 Windows Server 2016 中使用 node-rdpjs。

it works, thx

activeliang avatar Sep 02 '21 07:09 activeliang