title: node socket.io not working using VPN
body: <p>Everything's work fine on localhost but when I place it to live server some user's can't read my socket, even I use VPN my socket stop having an error (GET <a href="http://websitedomain.com:9090/socket.io/?EIO=3&amp;transport=polling&amp;t=LktMvZ3" rel="nofollow noreferrer">http://websitedomain.com:9090/socket.io/?EIO=3&amp;transport=polling&amp;t=LktMvZ3</a> net::ERR_CONNECTION_TIMED_OUT) even I use 0.0.0.0 in port still not working</p>
  
  <p>Server.js</p>
  
  <pre><code>var socket  = require('socket.io');
  var express = require('express');
  var app     = express();
  var server  = require('http').createServer(app);
  var io      = socket.listen(server);
  var port    = process.env.PORT || 9090;
  
  app.get('/', function (req, res) {
    res.send('connected')
  })
  
  server.listen(port, 'website-ip', function () {
    console.log('Server listening at port %d', port);
  });
  </code></pre>
  
  <p>App.js</p>
  
  <pre><code>socket = io.connect('http://'+window.location.hostname+':9090');
  </code></pre>