Accessing openmrs in vagrant through host machine IP issue

I found myself a solution after searching online. Instead of using port forwarding I added this line instead in the vagrantfile

config.vm.network :public_network, ip: “192.168.0.117”

This way the other machines in the network will need to access through that IP address.