Question

Connection timeout on Node.js app

  • Posted on May 26, 2014
  • ss1271Asked by ss1271

Hi,

I followed this tutorial to setup a node.js app on my CentOS:

https://www.digitalocean.com/community/articles/how-to-install-and-run-a-node-js-app-on-centos-6-4-64bit

and I can confirm the node.js is correctly configured by:

$ node -v v0.10.28

after running my app on the server on port 8080:

$node app.js

I cannot get access to it on my browser (e.g. http://ADDRESS:8080/?data=123 , it returns “Error code: ERR_CONNECTION_TIMED_OUT”.

However, the same app.js code runs fine on my local machine, is there anything I am missing?

The server address is reachable when using “ping”

Thanks.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Can you pastebin your apps source code? It’s possible that the app itself is simply timing out. Try adding a basic route that just outputs text and see if that times out too.