Skip to content

GCP

Network security

ADB traffic

Enabling ADB traffic from the Internet requires opening TCP port 5555 to the outside, but this connection is not secured. If you decide to do so, make sure to only set authorized hosts IP as Source IP for ADB traffic to your firewall rule.

Allowing access to anyone (0.0.0.0/0) is not secure and will leave the instance vulnerable to malicious attacks.

By default, all incoming traffic from outside a network is blocked. To access the instance from outside, you need to change or add a series of firewall rules:

  1. From GCP dashboard, go to NETWORKING > VPC network > Firewall
  2. Add or edit your rules to match the Network Security Settings requirements.

Create a new instance

Warning

  • Instances with Android 8.0+ images need a External IP in order to access and interact with a Genymotion virtual machine from the Web User Interface. If this does not comply to your requirements, please refer to Access from a NAT network or within the internal network.
  • Data encryption is only available with Android 8.0 images and above.
  1. Go to Google Cloud Platform marketplace.
  2. Select the version of Android OS for your Genymotion instance. We currently offer x86_64 images with the following Android versions/APIs:

    • Android 5.1 (Lollipop)
    • Android 6.0 (Marshmallow)
    • Android 7.0 (Nougat)
    • Android 8.0 & 8.1 (Oreo)
    • Android 9.0 (Pie)
    • Android 10
    • Android 11
  3. Click Launch:

    GCP Step 1

The configuration wizard opens:

GCP Step 2

Configure the new instance

You may want or need to change a few settings before deploying the instance. Also, any incoming connection from outside the virtual network will be blocked - to connect to from the Internet, you need to set firewall tags before deploying the new instance.

General settings

  • Deployment name: The name of the virtual device. You can change it to your liking.
  • Zone: Select your geographical area. The zone determines what computing resources are available and where your data is stored and used.
  • Machine type:1 Select the specifications of your machine from the dropdown list or by clicking Customize.
  • Boot Disk:2 Select the boot disk type and Storage space is much less expensive for a standard persistent disk.

Firewall - Networking

Android 8.0+

With Android 8.0+ images, your instance needs an External IP in order to access and interact with a Genymotion virtual machine from the Web. If this does not comply to your requirements, please refer to Access from a NAT network or within the internal network.

In the Firewall/Networking section, you can change the following settings:

Network interfaces

Click on the default network interface to change the Network, Subnetwork and External IP to be used by the instance. This assigns the instance an IPv4 address from the subnetwork range. Instances in different subnetworks can communicate with each other using their internal IPs as long as they belong to the same network.

The External IP allows the instance to communicate outside of the virtual network3. Selecting "None" will result in the instance having no external Internet access.

Firewall

Add firewall tags (rules) to allow specific network traffic from the Internet. See Network security.

IP forwarding

Enable or Disable IP forwarding. This allows the instance to help route packets.

When done, click Deploy.

Access a virtual device from Web

Android 8.0+

With Android 8.0+ images, an External IP is required to access and interact with a Genymotion virtual machine from the Web. If this does not comply to your requirements, please refer to Access from a NAT network or within the internal network.

  1. Start your instance
  2. Click on the instance name and copy the temporary Web UI password.
    Web UI password
  3. Get back to the main VM Instances page and click on the instance External IP
    External IP
  4. You will have the following warning because our certificate is autosigned:
    Certificate error
    If you don’t want a warning, you must install a trusted certificate. Please refer to Installing a valid certificate.
    Otherwise, click on Advanced and proceed to the connection.
  5. Enter username genymotion and paste the Web UI password.

Tip

If you want to change the username and password, please refer to Change authentication.

To stop your virtual device, close the tab where it is running and click on the three vertical dots at the end of the instance line and choose Stop.


  1. Machine types determine the specifications of your machines, such as the amount of memory, virtual cores, and persistent disk limits of your instance. For more information about instances, please refer to GCP machine types web page. 

  2. An SSD persistent disk is better for random IOPS or streaming throughput with low latency. Persistent disk performance is tied to the size of the persistent disk volume. You are charged for the actual amount of provisioned disk space. 

  3. See https://cloud.google.com/compute/docs/configure-instance-ip-addresses to learn more. 

Back to top