My host OS is Windows 7
I'm running a (Django development) server on Ubuntu 10.04 in VirtualBox.
I want to connect to that server (through my browser) on my Windows host. How can I do that?
|
My host OS is Windows 7 I'm running a (Django development) server on Ubuntu 10.04 in VirtualBox. I want to connect to that server (through my browser) on my Windows host. How can I do that? |
|||
|
|
|
It's also possible to set network adapter mode to 'bridged', then a VM will be seen as a usual machine with self IP address. |
|||||||||||||
|
|
This did the job for me:
|
|||
|
|
|
For that you have to forward the port on your Virtual Machine. Go to the command prompt and switch to your virtual box folder, there you can issue the following commands:
Switch "name of vm" with the name of your virtual machine, as well as the GuestPort with the port your web server is using, as it might use port 8080, or something different. After that you should be able to access the server via http://localhost:8888/ if I'm not mistaken. Edit: P.S.: as far as I remember, you need to set your network adapter on "NAT" for that Edit 2: The VirtualBox Manual which can be found here includes a section about port forwarding, done slightly different to the way described here. Read it in chapter 6.3.1. (For version 3.2.6) |
|||||||||||||
|