Running Localhost in virtual machine

I am using 12.04LTS on my machine.

I have installed Oracle Virtual Machine and running a Microsoft xp on it. I have local-host installed in the Linux system and wamp installed in the windows xp. I want to run two different instances of the localhost. One in the linux and a different independent on on windows xp. However, whenever i try run Localhost on the windows xp on the vm using wamp, my browser displays

Unable to connect; Firefox can't establish a connection to the server at local-host.

However, if I use the url: 10.0.2.2/ I am able to access the linux based local-host.

Someone educate me on how I can access the vm based local-host via my browser independently.

Thanks


If I understand correct

  • Ubuntu 12.04 running a winXP virtual machine
  • the browser is opened on the Ubuntu machine
  • both Ubuntu & win machine have a Apache server running on them
  • From the Ubuntu machine you can :

  • view Ubuntu Apache server running on localhost
  • view win Apache server by typing in the windows virtual machine IP.
  • From the windows VM you can :

  • view win Apache in the browser by typing in localhost
  • view Ubuntu Apache by typing in the Ubuntu server IP
  • 链接地址: http://www.djcxy.com/p/18222.html

    上一篇: 从virtualbox寻址localhost端口

    下一篇: 在虚拟机中运行本地主机