node-websocket-tunnel icon indicating copy to clipboard operation
node-websocket-tunnel copied to clipboard

getaddrinfo ENOENT

Open unkernet opened this issue 13 years ago • 2 comments

connects.js exits with an getaddrinfo ENOENT error when specified port different from 443

You need the following code to fix it:

...
var remoteHost = (process.argv[2] || 'localhost').split(':');
var remotePort = remoteHost[1] || 443;
remoteHost=remoteHost[0];
...
tunnel.createTunnel(remoteHost + ':' + remotePort, credentials, args[0], args[1], function(err, server) {
...
var opts = {
  host: remoteHost,
  port: remotePort,
  path: '/auth',
...

unkernet avatar Jul 26 '12 12:07 unkernet

It didn't work because phonegap works with Internet it needs a server to start up and running to know more please call +23481••••••99 [Edit: phone number redacted by @sstur]

Developerayo avatar Aug 30 '16 06:08 Developerayo

same issue. How to fix it?

VivianoRiccardo avatar Apr 01 '21 16:04 VivianoRiccardo