citronneur / mstsc.js Goto Github PK
View Code? Open in Web Editor NEWA pure Node.js Microsoft Remote Desktop Protocol (RDP) Client
License: GNU General Public License v3.0
A pure Node.js Microsoft Remote Desktop Protocol (RDP) Client
License: GNU General Public License v3.0
Tested mstsc.js inside of cozy, but I am not able to specify a custom port in the ip address field, had many cases where this should be needed to get a connection. Is there a trick or a workaround to enable it?
The current implementation seems doesn't support server pointer update.
When RDP server change the mouse pointer style by mouse hover effect, this RDP client will always use default mouse pointer. According to spec, RDP client should be able to reflect such update.
Please advise if it's possible to add such feature, many thanks!
/js/a.out.js.map
[node-rdpjs] INFO: screen 1282x332
[node-rdpjs] INFO: english keyboard layout
[node-rdpjs] INFO: connect to 192.168.10.124:3389
[node-rdpjs] INFO: SSL standard security selected
(node:51484) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:51484) [DEP0064] DeprecationWarning: tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.
I have installed the server in one of the Windows 10 machine in AWS ..
but when I try hit that machine via internet it doesn't connects.
http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:9250
BUT When I try from browser of that machine itself it works
http://localhost:9250
Is there any windows specific setting is required to make that node application publicly available.
I also turned off the Firewall.
Hi.
I lost many hours to compile the library.
I successfully configured the development environment by following this guide:
If I run the command:
npm install node-rdp
npm install successfully version
[email protected]
But if I used the command:
npm install mstsc.js
npm want to install [email protected]
105 silly resolveWithNewModule [email protected] checking installable status
106 silly cache add args ['bignum@^0.10.2', null]
and does not compile :-(
How can I force mstsc.js to use the new version of the library?
Can you help me?
I'm getting a screen like:
The screen slowly fills over time.
Attempting from:
Windows 8.1; Chrome 43.0.2357.132 m (64-bit)
Server:
CentOS 7.1.1503
NodeJS v0.12.6
Machine trying to reach:
Windows 8.1
Seems to connect fine from the node messages on the server. I have also tried in Firefox. Would it have to do with the "host" machine having multiple monitors? Let me know if you need any other data.
Please support the high version of nodejs, thanks
I'm can't get my client socket connection to connect to my server. My server is running and RDP connections are enabled but when I try to connect from a client browser, the "connection" event never happens when I try to connect to my RDP server, and I'm redirected to a blank canvas html page. I'm not getting an errors along the way.
Any ideas what might be happening?
This may be ENTIRELY out of scope for the project, but would it eventually be possible to implement remote USB? I know that the RDP protocol supports this (I read about it on the Virtualbox user manual), but it's probably very complicated. Perhaps this could be done through Chrome's USB API. I realize that Firefox and many other browser's don't support this, but it would certainly be helpful for Chrome users.
is there a way to use local printers?
Running this on Mac, the caps lock is inverted (when it's on for my Mac, the RDP thinks it's off and vice versa). I've also found that the caps lock button lags so enabling and disabling caps lock isn't seamless, making it hard to type quickly.
Anyone else having these issues?
Windows should allow multiple RDP connections, but just want confirmation that mstsc.js library also supports multiple connections. Thanks.
Hi/Salut Citronneur,
it seems that the node client is unable to connect to RDP version used by Windows 2003. When you submit the form you're redirected immediately to the default page with an empty form.
[node-rdpjs] ERROR: ENOTFOUND(getaddrinfo ENOTFOUND 111.207.67.35 111.207.67.35:3389)
Error: getaddrinfo ENOTFOUND 111.207.67.35 111.207.67.35:3389
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
use system tools:
[node-rdpjs] ERROR: NODE_RDP_PROTOCOL_X224_NEG_FAILURE()
Error
at new ProtocolError (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/core/error.js:40:8)
at Client.recvConnectionConfirm (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/protocol/x224.js:221:9)
at TPKT.<anonymous> (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at Object.onceWrapper (events.js:273:13)
at TPKT.emit (events.js:182:13)
at TPKT.recvData (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer.<anonymous> (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at Object.onceWrapper (events.js:273:13)
at BufferLayer.emit (events.js:182:13)
at BufferLayer.recv (/root/mytools/hktools_MTX/app/node_modules/node-rdpjs/lib/core/layer.js:92:8)
I'd like to be able to search a server to connect from a list.
Maybe able to send parameters in a POST form.
Similar to Guacamole with "Guacamole HMAC Auth"
Is that already possible ?
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
validation.cc
win_delay_load_hook.cc
c:\users\user\dsktop\mstsc.js\node_modules\utf-8-validate\node_modules\nan\nan_maybe_43_inl.h(88): error C2039: “ForceSet”: 不是“v8::Object”的成员 (编
译源文件 ..\s
rc\validation.cc) [C:\Users\user\Dsktop\mstsc.js\node_modules\utf-8-validate\build\validation.vcxproj]
@citronneur I am getting the following issue and unable to debug it. Please help me resolve.
[node-rdpjs] INFO: screen 1366x667
[node-rdpjs] INFO: english keyboard layout
[node-rdpjs] INFO: connect to 192.168.0.5:3389
[node-rdpjs] ERROR: NODE_RDP_PROTOCOL_X224_NEG_FAILURE()
Error
at new ProtocolError (/home/anant/mstscjs/node_modules/node-rdpjs/lib/core/error.js:40:8)
at Client.recvConnectionConfirm (/home/anant/mstscjs/node_modules/node-rdpjs/lib/protocol/x224.js:221:9)
at TPKT.<anonymous> (/home/anant/mstscjs/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at TPKT.g (events.js:260:16)
at emitOne (events.js:77:13)
at TPKT.emit (events.js:169:7)
at TPKT.recvData (/home/anant/mstscjs/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer.<anonymous> (/home/anant/mstscjs/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at BufferLayer.g (events.js:260:16)
at emitOne (events.js:77:13)
it is possible to achieve ?
bug: win7下方向键编程数字了
当输入 方向键
的时候,变成数字:
上 8
右 6
下 2
左 4
为什么?
Screen loading is very slow , when we scroll large file scrolling is very very slow
node -v
v16.14.2
$ node server.js
[node-rdpjs] INFO: screen 1421x795
[node-rdpjs] INFO: english keyboard layout
[node-rdpjs] INFO: connect to xxxxx:3389
[node-rdpjs] ERROR: NODE_RDP_PROTOCOL_X224_NEG_FAILURE()
Error
at new ProtocolError (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/core/error.js:40:8)
at Client.recvConnectionConfirm (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/protocol/x224.js:221:9)
at TPKT. (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at Object.onceWrapper (node:events:646:26)
at TPKT.emit (node:events:526:28)
at TPKT.recvData (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer. (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at Object.onceWrapper (node:events:646:26)
at BufferLayer.emit (node:events:526:28)
at BufferLayer.recv (/Users/51pwn/MyWork/mstsc.js/node_modules/node-rdpjs/lib/core/layer.js:92:8)
Is it possible to launch an application automatically or connect to a RemoteApp more directly?
in win7 input bug
when -> why
left - > 4
up -> 8
right -> 2
down - > 6
why?
When my node is 8.9.3, this project is ok. But while my node is 10.16.0, it cannot work. And the error log is like this:
Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:182:27)
Hello,
I have a question about the soft,
Is it possible to use it with a custom rdp server on my computer?
Or do I need cozy cloud ? Because I don't want to use cozy cloud.
Thank you for the answer.
Regards,
Hello,
I'm from the Cozy Cloud team. We planned to support node 4 in the sort term and we offer help for community application to do that too.
mstsc.js can't be installed with node 4 currently because it depends on [email protected] that comes with [email protected]. A fix for node 4 support has landed on node-rdpjs master branch (citronneur/node-rdpjs@de7113a).
I think all you have to do is release a new version of node-rdpjs and use it in mstsc.js. And if you want help, ask me: this issue is mostly for that, offering my help.
bug, can't works in iframe sometimes. can't type any words
Hi there,
When i am running the project after doing connect I'm getting this error :
TypeError: crypto.createCredentials is not a function
at BufferLayer.startTLS (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\core\layer.js:127:39)
at Client.recvConnectionConfirm (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\x224.js:245:28)
at TPKT. (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\x224.js:202:8)
at Object.onceWrapper (events.js:300:26)
at TPKT.emit (events.js:210:5)
at TPKT.recvData (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\tpkt.js:110:7)
at BufferLayer. (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\tpkt.js:101:8)
at Object.onceWrapper (events.js:300:26)
at BufferLayer.emit (events.js:210:5)
at BufferLayer.recv (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\core\layer.js:92:8)
Any help please?
How can we implement controls for the session like disconnecting or changing resolution settings?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.