I am discovering nodejs. So I created a simple file display a simple “hello world!”. When I run it in my console, it works just fine. Now I am trying to launch it from the browser (I am listening the 8080 port). But I have an error message, telling me that my browser couldn’t find that URL.
I am using MAMP. And, in the root configured with it, I tried to listen the port 8888 (the one that I use launching my PHP local sites, of course changing the port in my nodejs file), but it still doesn’t work.
For information, my app.js node file is also in the root directory configured with my MAMP server. Is it a firewall problem? If yes, how can I fix it? Should I change something in my /etc/hosts file?
In fact, it was indeed a firewall problem, I settled correctly my preferences, and it works just fine !