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 ..

Md Mahbubur Rahman
  • 2,065
  • 1
  • 24
  • 36
Hemantvc
  • 2,111
  • 3
  • 30
  • 42

2 Answers2

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>

Wouter
  • 534
  • 3
  • 14
  • 22
Hemantvc
  • 2,111
  • 3
  • 30
  • 42
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:

Community
  • 1
  • 1
Md Mahbubur Rahman
  • 2,065
  • 1
  • 24
  • 36