I have a node.js project running on the ubuntu server.—> App is listening on 5000.
So, I want to access it locally. Like http://server_ip:5000
How can I do this?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi, I have no idea how to access node.js app locally using console and being satisfied of what you get, at the same time. It is your decision if your node.js is front-end or back-end environment. You can access it from outside when you configure it as front-end environment. That means, your app must listen on your droplet’s public IP. You can check what ip addresses your app listens on.
If you get one out of the lines below, your app can be reachable from the Internet.
In addition, if you have any firewall installed, you need to configure it to allow connections on specific port (TCP 5000, in your case).