[英]Android adb unable connect with ip address
I have installed android operating system in Oracle Virtual box successfully. 我已成功在Oracle Virtual box中安装了android操作系统。
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. 我的问题是 - 我无法adb连接到虚拟盒android os。
When i am selecting host-only Adapter option ,easy to connect with adb but no internet connection in android virtual box os. 当我选择仅限主机的适配器选项时,很容易连接到adb,但在android虚拟机操作系统中没有互联网连接。
When i am selecting NAT ,Internet connection fine but not connect with adb . 当我选择NAT ,互联网连接正常但不与adb连接。
Please help me how to solve my problem .. 请帮我解决我的问题..
At first enable adb over tcpip in the Android VM Terminal Emulator. 首先在Android VM终端仿真器中启用adb over tcpip 。
Type the command # 输入命令#
adb tcpip 5555 adb tcpip 5555
Then to connect via adb from a command line 然后从命令行通过adb连接
Type the command # 输入命令#
adb connect 219.91.220.142 adb connect 219.91.220.142
Further resources: 更多资源:
Finally ,I am happy ,because i solved my problem , 最后,我很高兴,因为我解决了我的问题,
I put my answer ,may be helpful, 我把我的答案,可能有帮助,
solution:In emulator press ctrl+Home key 解决方案:在模拟器中按ctrl + Home键
see the menu and select network and select Bridge Adapter. 查看菜单并选择网络,然后选择Bridge Adapter。
press ctrl+atl+F1 in emulator open android terminal and type following command 在模拟器中打开android终端按ctrl + atl + F1并输入以下命令
![enter image description here][3] ![在此输入图像说明] [3]
type netcfg command 键入netcfg命令
Press ctrl+alt+F7 to see Graphical View . 按ctrl + alt + F7查看图形视图。
Restart emulator. 重启模拟器。 This ip add use with- adb connect Ipaddress 这个ip add使用with- adb connect Ipaddress
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.