Tuesday, 6 November 2018

How to make my express API accessible to the world?

Hi guys!I've been pulling my hairs out one by one over this:I have a server running on IP 45.23.22.22 that is hooked up to www.mysite.org. The server is running Tomcat and when i browse to www.mysite.org I can see my static welcome page ok. Im using node with express to expose an API. I listen with:app.listen(800, function () { //code }); I have a handler for the root:router.get('/', function (req, res) { res.send("nothing here"); }); When I try to go to www.mysite.org:800 nothing happens. At first I thought it might be a problem that I have tomcat running on the same server so I turned it off but that didnt help. I also tried http://45.23.22.22:500 with no luck.​Any ideas on whats causing express not to accept connections from the outside?

Submitted November 06, 2018 at 04:11PM by TheOrangutan75

No comments:

Post a Comment