Reputation: 2119
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.
When i am selecting host-only Adapter option ,easy to connect with adb but no internet connection in android virtual box os.
When i am selecting NAT ,Internet connection fine but not connect with adb .
Please help me how to solve my problem ..
Upvotes: 1
Views: 5104
Reputation: 2119
Finally, I solved my problem. This was my solution:
In the emulator press the CTRL + Home keys and press Devices > Network Adapters.
See the menu, select Network and select Bridged Adapter.
Press CTRL + ALT + F1 in the emulator to open the Android terminal and type the following command:
netcfg
Press CTRL + ALT + F7 to see the Graphical View.
Restart the emulator. Use the found IP in the command:
adb connect <IP address>
Upvotes: 3
Reputation: 2075
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:
Upvotes: 2