Android x86 Virtual box with Internet and connection to adb?
来源:互联网 发布:java utf转gb2312 编辑:程序博客网 时间:2024/04/30 13:32
http://android.stackexchange.com/questions/50085/android-x86-virtual-box-with-internet-and-connection-to-adb
I have Android x86 4.2 Installed on my Virtual Box.My main purpose is debug with eclipse and get internet on Android
Some how i am able to get internet and also able to connect fromadb (of ADT) but not both at a time
i have tried several combination to get both but no luck
How i get Internet
I get internet when i use NAT in one of these 4 adapters
How i get connected with adb
I get connected with adb when connected to newly created Host Only adapter note: the default host only adapter was not working
I have two questions:
First is how i will get both The Internet and connection to adbSecond is Can i get mybluetooth and Wifi device available to My Virtual box Android
Note: My Internet connection type is either 3G HSUPA using Modem or WiFi no LAN
Note: when both of them are connected then either of them works not both I have googled, Stacked, Virtual box site too but no luckInitially i was unable to connect to adb but I figured out the way i can!Please any one know the issue.
Answers
I'm using the very same setup with NAT mode. To connect via ADB:
- in VirtualBox Manager, right-click on your VM and select "show log"
- press Ctrl-F to initialize a search, type "DHCP". You will find several lines stating something like
NAT: DHCP offered IP address 10.0.2.15
– that's your IP, write it down ;) - select the "gear icon" in the same context menu to "change settings"
- go to the "network" tab, and click the "port forwarding" button
- add two rules to forward ports 5555 (adb) and 5554 (console) from the guest to your host machine. To make an easy rule for potential multiple Android-VMs, you can simply add a digit to the end – e.g. 5555→55551 and 5554→55541 for this machine (add a "2" for your second, if any).
- now on your host machine, execute the command
adb connect localhost:55551
Done. Execute any ADB commands as usual. You can use adb disconnect localhost:55551
if it gets in the way (e.g. if you're using some other device, and don't want to always specify which one to use with each ADB command).
- Android x86 Virtual box with Internet and connection to adb?
- How to adb connection with Kindle Fire
- Failed to create the Java Virtual Machine;the connection to adb is down and a severe error has occur
- Android-X86 虛擬機豎屏設定——for Virtual Box
- Android - Connection with adb was interrupted.
- Virtual-Box and ubuntu
- Virtual BOX OSE to Virtual BOX
- android The connection to adb is down, and a severe error has occured
- Android错误:The connection to adb is down, and a severe error has occured.
- Android错误:The connection to adb is down, and a severe error has occured.
- Android 关于“The connection to adb is down, and a severe error has occured.”
- android The connection to adb is down, and a severe error has occured.问题的解决办法
- Android 启动异常:The connection to adb is down, and a severe error has occured
- Android学习之 The connection to adb is down, and a severe error has occured. 解决方法
- Android:The connection to adb is down, and a severe error has occured
- 关于android:The connection to adb is down, and a severe error has occured.
- Android虚拟机提示The connection to adb is down, and a severe error has occured
- Android 编程碎片:The connection to adb is down, and a severe error has occured.
- 机器学习
- C++11中的String&&
- jquery+css实现html选择树或树形菜单
- C#控制台基础 设置控制台的背景色
- windows无法启动MySQL服务 错误1067
- Android x86 Virtual box with Internet and connection to adb?
- eclipse字体设置
- 移植u-boot学习笔记2-----分析启动过程之内存分布
- 如何成为一个优秀的互联网营销人员?(互联网销售/网络营销职位从菜鸟到大神应该学习的内容)
- Android Training - 管理应用的内存
- 色彩构成与搭配——人对色彩的感觉
- Dependent Check
- 内存泄漏的八种可能
- 初学者采集数据,图片