title: Can't access Node.js server on web server
body: <p>I'm trying to test a simple Node.js server on my webserver. The problem is that I can't access the Node.js server from my chrome browser and I have searched without any success.</p>
  
  <p>This is my basic <strong>server.js</strong> script (server side)</p>
  
  <pre><code>var app = require('express')();
  
  app.get('/test', function (req, res) {
      console.log('web page opened');
  });
  
  app.listen(3000, function () {
      console.log('Listening on port 3000');
  });
  </code></pre>
  
  <p>When I run the node in console I get result as expected</p>
  
  <pre><code>public_html$ node server.js
  Listening on port 3000   
  </code></pre>
  
  <p>Now when I try to access the URL like this:</p>
  
  <p><a href="http://xxx.xxx.xxx.xxx:3000/test" rel="nofollow noreferrer">http://xxx.xxx.xxx.xxx:3000/test</a> the connection times out and I do not get anything.</p>
  
  <p>This prevents me from using $.ajax form to send data to my node server and the jquery request fails with error as connection timed out issue as well because the URL:3000 with my nodejs port is not accessible.</p>
  
  <p>It seems like my host (Cloudways) does not allow access on any port. If that is case, what can I do really in this situation?</p>
  
  <p>Note: I do not have root access to the server, they can't give root access for security.</p>