2

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

2 Answers 2

1

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.

0
1

Get your guest's ip address using ifconfig.

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

2
  • or localhost
    – cutrightjm
    Commented Sep 21, 2012 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.
    – Flinth
    Commented Sep 21, 2012 at 7:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .