jamalabo2
By:
jamalabo2

ERR_CONNECTION_TIMED_OUT in node.js Using Centos 7

October 6, 2017 146 views
Node.js CentOS

node version

v8.6.0

App.js

var express = require('express');

var app = express();

app.get('/' , function(req,res){
res.send('Works');
});

var logger = function(req,res,next) {
console.log('Logging......');
next();
}

app.use(logger);

app.listen(3000 , function() {
console.log('hello');

});

when i try to access it in the browser i get ERRCONNECTIONTIMED_OUT and I tried it in localhost it worked

1 Answer
aseemr October 6, 2017
Accepted Answer

Check firewall ports, may need to be opened.

Have another answer? Share your knowledge.