1

I have installed android operating system in Oracle Virtual box successfully.

but I am facing one problem ,

I tried many options, but I couldn't solve this problem .

My problem is - I am not able to adb connect to virtual box android os.

enter image description here

When i am selecting host-only Adapter option ,easy to connect with adb but no internet connection in android virtual box os.

enter image description here When i am selecting NAT ,Internet connection fine but not connect with adb . enter image description here

Please help me how to solve my problem ..

2 Answers 2

3

Finally, I solved my problem. This was my solution:

In the emulator press the CTRL + Home keys and press Devices > Network Adapters.

Screenshot with results of pressing the keys

See the menu, select Network and select Bridged Adapter.

Screenshot of the configurations

Press CTRL + ALT + F1 in the emulator to open the Android terminal and type the following command:

netcfg

Example result of netcfg

Press CTRL + ALT + F7 to see the Graphical View.

Restart the emulator. Use the found IP in the command:

adb connect <IP address>

0
2

At first enable adb over tcpip in the Android VM Terminal Emulator.

Type the command #

adb tcpip 5555

Then to connect via adb from a command line

Type the command #

adb connect 219.91.220.142

Further resources:

6
  • how to enable adb over tcpip in terminal ?
    – Hemantvc
    Jan 1, 2013 at 5:46
  • To enable adb over tcpip run the command # adb tcpip 555, which I already added in my answer. Jan 1, 2013 at 5:48
  • Your TCIP daemon is not running. Jan 1, 2013 at 5:54
  • @AndroidRevolution Please have a look at "further resources" portion of my answer. Jan 1, 2013 at 5:58
  • i got it my answer ..see following ways see in answer.
    – Hemantvc
    Jan 1, 2013 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.