Question
Connection timeout on Node.js app
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.
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.
×
I seem to have the same problem. The interesting thing is that it was working after creating the droplet, but stopped about 24hrs after creation of the droplet.
$ node -v gives a result, ping and tracert to my IP work, curl however does not.
I will try the suggestion below. Edit: tried a simpl http-server ($ npm install http-server), same result.
Thx.
opened https://www.digitalocean.com/community/questions/connection-timeout-on-node-js-app-on-fedora?utm_content=connection-timeout-on-node-js-app-on-fedora on this