Hemantvc
Hemantvc

Reputation: 2119

Android adb unable connect with ip address

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

Upvotes: 1

Views: 5104

Answers (2)

Hemantvc
Hemantvc

Reputation: 2119

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>

Upvotes: 3

Md Mahbubur Rahman
Md Mahbubur Rahman

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

Related Questions