I need to develop for Android inside a VM on macOS, so I created a macOS VM on my mac m3, using UTM.
Since I cannot run the Android Emulator inside the VM, I ran it outside, now it's just a matter of connecting the Android Studio inside the VM to the Android Emulator outside the VM.
Android has a feature to connect over network by pairing codes. If the VM shared the same network as the host, it would work. I tried bridge and networking mode and it didn't work.
My idea (which I didn't try yet) would be to ssh from host to guest, with a reverse proxy, then connect with ADB.
Is there a very easy way to do this connection?