title: Node - ENONET when connecting to a socket
body: <p>Executing this code:</p>
  
  <pre><code>var fs = require('fs');
  var Socket = require('net').Socket;
  
  var socket = new Socket();
  
  console.log('connecting to: ' + server.host + ':' + server.port );
  
  socket.connect( server.host, server.port );
  
  socket.on('error', function(err) {
  
      console.log(arguments);
  });
  
  socket.on('connect', function() {
      console.log('connected');
  });
  
  socket.on('end', function() {
      console.log('socket ended');
  });
  </code></pre>
  
  <p>Always throws this error:</p>
  
  <pre><code>{ '0': { [Error: connect ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'connect' } }
  </code></pre>
  
  <p>I'm on CloudLinux(x64) based shared hosting with SSH access.</p>