Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have successfully installed Android OS in Oracle virtual box, but I have one problem: I cannot connect to ADB in the Android OS virtual box.

In my Network settings in virtual box:

  • When I select host-only Adapter option, I can connect with ADB, but I have no Internet connection.

  • When I select NAT, I cannot connect with ADB, but I have Internet connection.

How do I fix this?

share|improve this question
add comment

1 Answer

If you use NAT you must add the right forwarding rule: Go to your network configuration. Select NAT, put PCnet-FAST III as adapter, and deny in mode. Then click in the button to add the rules and add a rule for TCP where the host and guest ports are 5555.

Always the most sneaky part is the network configuration of the VM, try with this one. If you still have issues check this tutorials: Speeding up Android development with Android-x86 and VirtualBox

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.