ERR_CONNECTION_TIMED_OUT in node.js Using Centos 7

node version



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.listen(3000 , function() { console.log(‘hello’);


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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Check firewall ports, may need to be opened.