How to connect to a Genymotion Desktop virtual device remotely with ADB?
This article describes how to connect to a Genymotion Desktop virtual device remotely using ADB on Windows, Linux, and MacOS.
Windows and Linux
This section explains how to connect to a Genymotion Desktop virtual device remotely using ADB on Windows and Linux.
- On Linux, this method will only work with VirtualBox Hypervisor.
- Set your virtual device Network mode to Bridged. See Configuring a Virtual Device.
- Retrieve the virtual device IP address. It 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
VirtualBox hypervisor is not available on mac M series and the "Bridged Network" mode has not been implemented yet.
However, it is possible to forward TCP port using socat tool:
- 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
Related articles
- How to connect a virtual device to a proxy?
- How to connect Genymotion SaaS virtual devices to ADB?
- How to access a local host or service from a virtual device?
- How to install Magisk on Genymotion?
- How to connect a Genymotion Device Image (PaaS) instance to any IDE?