My remote machine shows listening on the correct port, but the browser will not display the site.

Posted April 8, 2020 801 views
Server OptimizationUbuntu 16.04

I ran to nodejs apps and both of them showed the correct port in the console, however, when I entered the ip:port# in the browser the site would never load. Eventually the process timed out on both attempts. What could I possibly do to get this to work? 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.

Submit an Answer
2 answers

Do you have a firewall configured? If you do you will need to allow these ports there as well.

Make sure it’s binding to the right IP: and not

Could also be a firewall, check firewall on VM (eg UFW) or DO firewall settings

However you probably want to proxy the traffic via something like nginx and not expose your node app directly.