Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB - VirtualBox connection

I've trying to connect ADB and a VirtualBox Android device. I've followed all possible tutorial on the web but it's still not working. What i've done :

  • dl Adroidx86 from androidx86.org
  • intall it on VirtualBox
  • configure network with correct access mode (bridge) and card (PC-net Fast III)
  • type netcfg in the virtual machine terminal and get 192.168.1.12 for IP address (static)
  • type adb kill-server on the host machine
  • type adb connect 192.168.1.12 on the host machine

And get the error unable to connect to 192.168.1.12:5555. I'm running windows 7 as OS.

Have you any idea why ?? How to know the port of the device to connect ? Thank you !

like image 575
Derbie Avatar asked Mar 06 '13 15:03

Derbie


People also ask

How do I connect my phone to VirtualBox?

Ensure that your VM has a USB controller added in its hardware configuration, and that Virtualbox Guest Additions are installed in the VM. Once you've done this, you'll see a USB icon at the bottom of your VM's window. Click on that, then select your Android device to give control of it to the VM.


1 Answers

First do the Port Forwarding settings like this

VirtualBox Network Setting

Then run this Command: adb connect 127.0.0.1

adb connect

like image 190
M.R.T Avatar answered Nov 11 '22 18:11

M.R.T