Question

I’ve created a VM (with VirtualBox) of CentOS on my MacBook Pro with the ethernet set to Bridged. So, the VM has its own static IP address of 192.168.1.111

Within the “hosts” file on the VM, I’ve got:

127.0.0.1 dev.example.com

Within the “hosts” file on my MacBook Pro (the host machine), I’ve got:

192.168.1.111 dev.example.com

Now the site works fine from within the VM, but doesn’t pull up anything from the host MacBook Pro…

I’ve spent literally 2 days trying to setup this network and I have no idea what the issue is.

Was it helpful?

Solution

It was the CentOS Firewall. It wasn't allowing incoming HTTP requests. Had nothing to do with my hosts files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top