- Press Alt + F1 , enter
netcfg write down the IP address and press Alt + F7 . - Run
adb connect <virtual_machine_ip> in the terminal on the host machine.
Then you should see the device in ADT and be able to run your applications on it.
Edit:. This will work if you are configured to use bridged or host adapters: for NAT, you must first configure port forwarding:
- cd to your VirtualBox folder on Windows: (C: / Program Files / Oracle / VirtualBox)
- configure the port forwarding rule through the command line as follows:
VBoxManage modifyvm <name_of_your_android_vm> --natpf1 adb,tcp,*,5555,*,5555 - Run vm
- Connect to your virtual machine by typing
adb connect localhost:5555 - Launch the application in Eclipse and you will see localhost: 5555 as available AVD
source share