Networking – How to Connect to a Web Server Running in a VM in NAT Mode

networkingUbuntuvirtual machinevmware-workstation

I've got a development webserver on an Ubuntu box inside of VMWare Workstation 7.1.3. I'd like to run a web browser on a Windows machine (the host OS) for actually testing a web page I'm working on — hard to run IE tests in Ubuntu 🙂

However, if I simply try to ping the IP given to the ubuntu VM (192.168.83.137) (or open it in my browser for that matter), it seems the host cannot communicate with the guest.

How do I allow the guest OS to communicate with the host when the guest is running in NAT mode?

Best Answer

I have this configuration working in my computer:

host: Windows 7

VMWare: openSUSE 11.x using NAT

If i run ifconfig on linux, I have this ip: 192.168.126.129. In the host I have adpater VMNet8: 192.168.126.1

I opened in the browser the URL: http://192.168.126.129/ and it opened the apache "IT Works" page

If this doesnt work, check the firewalls an/or if apache is listening at 192.168.126.xxx.

Related Question