How do I ping the Ubuntu host system from a Windows guest in VirtualBox?
The easiest way to get this is to just open up your connection information from the appindicator, like this:
That brings up your local IP address. Note that this isn't your IP address on the Internet, just your local address. You can always go to whatismyip.com for an easy way to see it.
In your screenshot, eth0 is an Ethernet connection, and wlan0 is your wireless connection. To get your IP address in the Windows virtual machine, try typing ipconfig/all
at a command prompt (Start/Accessories/Run/type 'CMD', and looking for your default gateway there:
In this example, my guest sees the Ubuntu host as 10.0.2.2
It may be that the VM sees it as a wired connection, even on a laptop with the host using wifi.
Related videos on Youtube
Comments
-
uemeulo over 1 year
I connected to a wireless point and use "ifconfig" but I don't see any IP in eth0. Where's my IP address? Sorry if this is a silly question. :)
I want to use "ping" in Virtualbox Windows 7 guest. Which IP should I type in that machine?
-
Admin over 12 yearswlan0 > 192.168.1.198
-
Admin over 12 yearswhen your are connected through wireless wlan0 will work , wlan mean wireless lan
-
Admin over 12 yearscheck the ip address of windows 7 machine , ipconfig or by network adapter status
-
Admin over 12 yearsI want to ping Ubuntu from Windows 7 guest machine. Do I type "ping 192.168.1.198"?
-
Admin over 12 years192.168.1.198 is the address of your ubuntu machine , for pinging you need to know the ip address of ubuntu machine & windows 7 machine , now u have ip address of ubuntu machine that is 192.168.1.198 & now u need to know the ip address of windows 7 machine , How do u know ? , go to windows 7 machine and go to run type " cmd " & prompt will open , now type " ipconfig " then it will show you the ip of windows 7 machine , then ping it
-
-
uemeulo over 12 yearsVery detailed! BTW thanks for editing my question title.