I have this in my server.js :
var app = require('express')();
var http = require('http');
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("It's alive!");
response.end();
}).listen(3000);
this works fine on local but not when I deploy it and try access to my shared.domain.ma:3000
In the client side I have a Websocket that trying to connect to my server in that address but it give me net::ERR_CONNECTION_TIMED_OUT
ann I tried curl
and the result is the same again
- What could be reason of this problem?