How to access a vmware guest web server from another device on the network

14,329

NAT is used if you want the VM to share the same IP address as the computer it's running on.

If you want it to have it's own IP address, switch the VM's virtual network adapter to bridged mode. You can then let the VM get an IP from DHCP, or assign one manually.

You can make servers accessible through the VM's NAT if you really want, but you have to set up port forwarding on the VM. It's much easier just to use bridge mode.

If you want the site to be accessible through your phone's cellular data connection as well, set up port forwarding on your Internet router as @Pierre above explains.

Share:
14,329

Related videos on Youtube

Sir Robert
Author by

Sir Robert

Updated on September 18, 2022

Comments

  • Sir Robert
    Sir Robert over 1 year

    I am developing a mobile website. I develop in Ubuntu via a virtual machine (vmware). I have a Windows 8 host and Ubuntu 13.10 guest.

    I want to be able to view the site-in-progress on my phone for testing purposes. How can I do this?

    I'm a developer, not a network guy =)

    Note: I am using a NAT connection. I can access the guest web server from a host browser, but not from my phone's browser (chrome). The phone is connected to the same (wireless) network.

    Thanks!

  • ljs.dev
    ljs.dev about 10 years
    in these days of wifi-only laptops, it may be good to note that bridged mode will not usually work over combinations of NIC and routers, in which case, NAT with port forwarding should be your target solution