Search code examples
ruby-on-railsrubyvirtual-machinevirtualboxportforwarding

running ruby on rails in virtual box debian instanz


my host system is a windows 8.1 system there i've running a debian 7 vm in virtual box.

I've created a new Ruby on Rails project and started the server. Server starts properly and listen on port 3000

enter image description here

So i added a port forwarding rule in virtual box for this port

enter image description here

But now when I try to reach 127.0.0.1:3333 from my host got an error page not found.

Is there something to look at?


Solution

  • when starting your server, use sudo rails server --binding=0.0.0.0