node-websocket-tunnel
node-websocket-tunnel copied to clipboard
getaddrinfo ENOENT
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',
...
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]
same issue. How to fix it?