I'm running an OSX host with an Debian box inside virtual box. How would I be able to reach the guest OS (i.e. web-app on port 3001) from inside my VM?

I tried ifconfig from inside my VM, taking that IP and forwarding ports from the settings UI from VirtualBox, but I'm not entirly sure that's the IP of the box from my host OS.

VBoxManage guestproperty enumerate Myboxname yields no IP info. I was told this was because I didn't not have guest additions, so I added guest additions to no avail.

I also tried running my web application from instead of Still unable to reach from guest.

Also tried using my default gateway with netstat -rn, but was unable to reach any sort of response even from my host machine to this IP (and also hangs from within guest machine).

I need to reach my HOST FROM my GUEST. Can't seem to figure this out.


I was able to reach my host OS IP address simply as the default gateway from within my guest machine.

INSIDE MY HOST: netstat -rn gave me the default gateway.

From here, usually the default gateway is

Port forwarding did not seem to be necessary to reach the HOST from the GUEST.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.