Score:0

Adb connection between Ubuntu and Android VMs

bi flag

I have an Ubuntu VM setup on virtual box and an Android Emulator setup on Android Studio, and I need to emulate the cordova project I'm developping on ubuntu on my android emulator. (I cant just create the emulator on my ubuntu VM, android studio tells me it's impossible because my processor doesn't support hardware accelerated virtualisation)

I saw that I could use adb to do this, so I followed a tutorial which basically consisted of running the emulator on windows, executing the following commands in the adb folder :

setprop service.adb.tcp.port 5555
stop adbd
start adbd

then connecting to the device on ubuntu using its IP adress (in my case it's 10.0.2.15 )

adb connect 10.0.2.15

However this results in

failed to connect to '10.0.2.15:5555': Connection refused

I suspect this comes from my virtualbox network config, as I have no clue of what I'm doing there. I have setup my adapter 1 as "NAT" and didn't touch anything else. I'm guessing there is more to do ?

Sorry for the naive question, I have no networking experience prior to this, which makes it difficult to even know how to search for answers / similar problems.

Anyway, any help will be greatly appreciated !

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.