Question

Deployd (Node.js) only accepts local connections

I cannot not connect to my deployd server externally on 45.55.183.253:5000. I can connect to it locally with no problems.

I am running the ubuntu 12.04 image.

A netstat -ntap shows the following:

tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      8906/nodejs 

The code used for the server is taken from the documentation. I have tested with adding both port and server location in .listen(). The script is run with forever. But I have also tested with just running the script with node.

I have also tested with the test server from the node.js page, with the port as the only argument in listen(). Still with no luck.

Is there any configuration that I need to do to allow the server to be accessed externally? Any help would be very much appreciated.

Subscribe
Share

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.

Judging from the netstat output provided, it appears as if the application is correctly listening on port 5000 on all network interfaces. If you are still not able to connect to the app, the first step in troubleshooting the issue would be to review any firewalling rules you may have put in place. For example if you are using UFW to manage IPtables, make sure that you have opened port 5000:

sudo sudo ufw allow 5000/tcp