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 !