How to connect to a Genymotion Desktop virtual device remotely with ADB?
Windows / Linux
- On Linux, the method works only with VirtualBox Hypervisor.
- Set the virtual device Network mode to Bridged.
- Retrieve the virtual device IP address. The IP address is displayed on top of the virtual device window.
- From another computer, open a command prompt and run:
adb connect <virtual_device_IP>:5555
MacOS
- MacOS does not have VirtualBox hypervisor on Mac M series, and the Bridged Network mode has not been implemented yet.
- Forwarding TCP ports using the socat tool is possible.
- Install socat:
brew install socat
- Forward your host computer local port 6555 to 127.0.0.1:6555:
socat TCP-LISTEN:6555,bind=<your-host-computer-ip>,fork TCP:127.0.0.1:6555
- From another computer, connect adb with your host computer port 6555:
adb <your-host-computer-ip>:6555