VirtualBox guest OS accessing local server on host OS
Problem
On my Ubuntu host I have my local webserver. I installed VirtualBox and Debian as a guest. I would like the Debian guest to be able to hit my webserver running on my Ubuntu host (for example, I just type in the browser under Debian). How can this be done?
Error Output
http://localhost:8080/
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: VirtualBox guest OS accessing local server on host OS
Enable ONE network adapter. Set it to NAT and start your machine. Don't need to configure anything. On guest machine's browser type http://10.0.2.2 which will show you the same content as "localhost" in the host OS. 10.0.2.2 is the "default gateway" for NAT connections and your guest OS' IP is 10.0.2.15 Of course you can set a "HOST-ONLY" or an "Internal Network" which will allow you another advanced configurations. I recommend to stay with NAT. Enjoy M.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix