Ubuntu – Virtual Machine and My machine have different IP range

networkingUbuntuvirtualboxwireless-networking

I have an ubuntu virtual machine running on VirtualBox. I also want my Windows 10 machine to communicate to this VM. The VM network settings is NAT.
When I try to ping the VM from my Windows machine, the ping fails. The Windows IP is: 10.188.132.xx and subnet: 255.255.255.0 while Windows machine IP: 10.188.132.xx and subnet: 255.255.240.0. I tried all VirtualBox network settings, none of them provided the VM with an IP in the same range as my machine. I do not control my DHCP and I connect through wireless but I also do not have access to its settings as it is not my own.

How can I configure the ubuntu VM to have IP int he same range of my Windows machine so I can connect them together (ping and open the web page in the VM from my Windows machine)?

EDIT:
To clarify: the VM contains apache web server. I want to connect to the web server from my Windows machine. I can not access the web server nor ping it. There is not connectivity between the two machines.

EDIT 2:
For those who suggested Host-only configurations. It is disabled. This is the screen shot:

enter image description here

Best Answer

I recommend using bridged networking. That will put the VM on the same LAN as your host, which will make your VM accessible to any other PC or tablet on your LAN.

Related Question