Skip to content

How to handle timeout ?  #41

@MeriemBo

Description

@MeriemBo

I'm using the packge from a nodejs application , and it doesn't connect to the remote deskrop and I get this error in the console :

[node-rdpjs] ERROR:     ETIMEDOUT(connect ETIMEDOUT 106.162.16.143:9602)
Error: connect ETIMEDOUT 106.162.16.143:9602
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1054:14)

here is the config I'm using :

rdp.createClient({ 
domain : '106.162.16.143:9602', 
userName : 'username',
password : 'password',
enablePerf : true,
autoLogin : true,
decompress : false,
screen : { width : 800, height : 600 },
locale : 'en',
logLevel : 'INFO'
}).on('connect', function () {
console.log('connected!!');
}).on('close', function() {
}).on('bitmap', function(bitmap) {
}).on('error', function(err) {
  }).connect('106.162.16.143', 9602);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions