Node js on virtual machine ignores requests from outside

this is the first time I use nodejs (and express), so I'm sorry if the question is stupid.

I installed nodejs and express on my debin virtual machine and created hello-world application. I run it like

DEBUG=myapp ./bin/www

Calling my application from virtual machine works just fine, but it ignores requests from outside workspace (windows). I thought it could be related to apache that I also have, so I stopped it, but it doesn't solve the issue. Please advice.

Thanks.

And this is how I solved it.

  1. Opened port 3000 in Firewall (not sure if this was required), see how to do this http://windows.microsoft.com/en-us/windows/open-port-windows-firewall
  2. Added port forwarding in my vm settings in virtualbox. By default there were ports 80 and 22. So I added 3000 which was the solution.