How to connect a Genymotion PaaS/Device Image instance to any IDE?

How to connect a Genymotion PaaS/Device Image instance to any IDE?

Pre-requisites

Genymotion PaaS/Device Image instance connections to an IDE require the following pre-requisite.

ADB tool from Android SDK (platform-tools).

If you are using Android Studio, the SDK platform-tools are already included.

Instructions

To connect a Genymotion instance to your favorite developer's tool (IDE), connect it to ADB.

Setup your Cloud network firewall

ADB connections use TCP port 5555.

You first need to allow inbound connections to TCP port 5555 on your Cloud firewall.

> Warning: Do not open inbound TCP port 5555 to everyone (All, 0.0.0.0/0), or your instance will be vulnerable to attacks! Only allow inbound connections to TCP port 5555 from authorized hosts.

Please refer to your Cloud provider documentation to setup your Cloud network firewall:

A more secure option is to only open inbound connection to SSH and use a SSH tunnel. For detailed instructions, please refer to Genymotion Device Image user guide.

Connect the instance to ADB

Follow the steps from our user guide: How to access a virtual device from ADB?

Once done, your instance should appear like a connected device in your IDE.