After starting my Sinatra application with both ruby app.rb
and foreman start
I am unable to access my application with localhost and the respective port on my host machine. I am also able to curl
to the applications from within the shell of on guest machine, whereas on the host machine the curl
request fails. As far as I know there shouldn't be a firewall in place on the guest machine because I'm using the Vagrant Ubuntu image.
My Vagrantfile is as follows:
Vagrant.configure('2') do |config|
config.vm.box = 'precise32'
config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
config.vm.network :forwarded_port, guest: 4567, host: 4567
end