Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to access guest's localhost through a browser inside the host? I am running Ubuntu with Virtualbox on Win7.

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

That depends on how your guest is connected to network.

If you are connecting through NAT, virtualbox provides port forwarding. Your access against host:port1 will be mapped to guest:port2 then. This is my preferred way.

Or if you are using Bridge, just check IP address of guest, and use it in host's browser.

share|improve this answer
    
Used bridge and it worked, thanks! –  Kay Sep 21 '12 at 10:25
add comment

Get your guest's ip address using ifconfig.

Type this ip address on your host browser's address bar.

share|improve this answer
    
or localhost –  ekaj Sep 21 '12 at 4:29
    
Localhost won't work since it's aim the local machine. If you type localhost on Win7 you're going to reach your Win7 machine. Host and guest are different machines with different IP addresses. –  epingle Sep 21 '12 at 7:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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