How to redirect network traffic to a local proxy with Genymotion SaaS?

4 years ago · Updated

If you need your application to access a local proxy, you will need to use adb reverse.

To do so:

1. Connect your device to adb with gmsaas - see How to connect a Genymotion SaaS virtual device to adb? 2. Set your local proxy to use TCP port 3000 (for example) 3. Configure the virtual device proxy using the web device interface, or with ADB:

   adb shell settings put global http_proxy localhost:3333
   
4. Bind your local proxy to the device proxy configuration using command:
   adb reverse tcp:3333 tcp:3000
   
5. Make sure your app handles Proxy System Settings.

For more details, you can also refer to this article.

Source: https://support.genymotion.com/hc/en-us/articles/360005275218-How-to-redirect-network-traffic-to-a-local-proxy-with-Genymotion-SaaS

Published:

Keywords: Genymotion SaaS, adb reverse, local proxy