Access Ubuntu Apache server in VirtualBox from host computer.

preview_player
Показать описание
1) I have Ubtuntu installed as virtual box in Windows 7
2) Apache2 is installed in Ubtuntu
3) I tried to access Apache in Ubtuntu and failed.
4) Check Ubutuntu IP address
ifconfig
10.0.2.15
5) Check Windows 7 IP using
ipconfig
192.168.1.66
Different internal network
6) Open VM virtual box manager
In newtork, change attached to
NAT
to
Host-only adapter
7)Wait 1 minute, check Ubutuntu IP address
ifconfig
192.168.56.101
same network as Windows 7
8)type address in Firefox in host computer Windows 7
running
Note it may cost Ubutuntu network failed.
In network, change attached to back to
NAT
for connection to outside in Ubutuntu .
My blog:
Рекомендации по теме
Комментарии
Автор

2022 this is the easiest way to access virtual localhost from my windows host. Thank you!

kepperbeegames
Автор

Many thanks for this video. Whatever you lack as a professional presenter you've made up with actual useful information, which is far more important.

geoffhalsey
Автор

Quick note: if you want to ping from other machine, then set to "Bridged: Connected directly to the physical network", else you can't reach your android or anything else outside host computer.

MilanKarakas
Автор

Your video description was enough to me, Works like a charm . Thank you .

ldiegosousa
Автор

Does that make your virtual box vulnerable security wise since you are exposing it directly to the requests. would having that NAT layering between the VB and your network better security?

photozen
Автор

That did not worked for me. I used Ubuntu as a host computer. It was not possible to set up the "Host-only adapter" in VirtualBox surprisingly.

Автор

Bro do you have any idea what you have done? I wasted 3 hours searching on internet and finally landed on this video which solved my problem in 2 minutes. Thank you for making this video! Here take my subscribe and like!

weirdworld
Автор

I was doing pretty much similar steps but could not access the Guest VM's (Centos) Apache page from my Mac Host Safari browser. It finally worked after disabling firewall on the VM.

Turn firewall off on VM:
$ sudo systemctl disable firewalld
$ sudo service firewalld stop

DeepakSharma_youtube
Автор

saved so much time, thank you for the great video

annann-dpud
Автор

Thank you and thanx too google for the automatic subtitles :-)

EvilDesktop
Автор

I can access to the index on my phone as well with that ip address?

SooSoo
Автор

You're missing something in your explanation. 192.168.1.* and 192.168.56.* are not in the same subnet if you're using a /24 mask, so your normal OS shouldn't of been able to reach that webpage unless it was cached from the first time you got it to work before making this video.

franke
Автор

Failed to open a session for the virtual machine test.

Nonexistent host networking interface, name '' (VERR_INTERNAL_ERROR).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole

help p/z

Dark-npdo
Автор

i can't reach the network from the vm though
i can ping the vm but the vm can't ping the local machine

younes
Автор

Thanks.
The audio sucks but you helped me a lot.

zugdsbtngizudsgbnudsdsoiu
Автор

Host-only adapter does not give me ipv4 only ipv6

zygimantasjasiunas
Автор

thank you very much it is very helpful

shellamelexterminador
Автор

is it possible to access vi domain name ??

hajisoukaina
Автор

holey shit dude bin searching straight for 2 days for a fucking solution and you just freaking solved in in 30 seconds fuck

asdfRiven
join shbcf.ru