[Answer]-Nodejs wont allow non local connections

1👍

replace app.listen(8080) to app.listen(8080, '0.0.0.0').

0👍

I hope you didn’t expect localhost to be internet visible by default 🙂

The easiest way to do this would be to deploy your app to one of the platform services available. Heroku is a good choice for node.js that offers a free plan.

On the other hand, if you just want to test things out, ngrok is a handy tool that can make your localhost:port visible to the internet via a generated URL like http://{hash}.ngrok.com.

Leave a comment