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:
- From GCP dashboard, go to NETWORKING > VPC network > Firewall
- Add or edit your rules to match the Network Security Settings requirements.
Create a new instance¶
- 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.
- Go to Google Cloud Platform marketplace.
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
The configuration wizard opens:
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.
- 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¶
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:
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.
Add firewall tags (rules) to allow specific network traffic from the Internet. See Network security.
Enable or Disable IP forwarding. This allows the instance to help route packets.
When done, click Deploy.
Access a virtual device from Web¶
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.
- Start your instance
- Click on the instance name and copy the temporary Web UI password.
- Get back to the main VM Instances page and click on the instance External IP
- You will have the following warning because our certificate is autosigned:
If you don’t want a warning, you must install a trusted certificate. Please refer to Installing a valid certificate.
Otherwise, click on
Advancedand proceed to the connection.
- Enter username genymotion and paste the Web UI password.
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.
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. ↩
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. ↩
See https://cloud.google.com/compute/docs/configure-instance-ip-addresses to learn more. ↩