How do I get the Ip address of the Android x86 machine from outside Virtualbox/Android console?
I am currently running Android x86 in Virtualbox. Instead of opening the Android console to runifconfig
to get the Ip address, I want to be able to get the Ip address of the machine from outside the Android console?
I have tried various other methods such as
VBoxManage guestproperty get <vm_name> "VirtualBox/GuestInfo/Net/0/V4/IP"
However, no value is set!
I saw other post that recommends setting static Ip address for the machines, but wouldn't you need to reconfigure them again when you switch to a different network? (not very sure about this)
I need the IP address to use adb to connect to the android host machine. Are there any idea or workaround for this?