HTTP Proxy without authentication
1. From Android interface
- Click Menu > System settings.
- In Wireless & Networks, select Wi-Fi.
- Click WiredSSID and hold it down for two seconds.
- Click Modify Network.
- Check Show advanced options.
- In Proxy settings, select Manual.
- Enter the proxy settings provided by your network administrator.
- Click Save.
2. By command line
Connect your device to ADB (refer to Genymotion user guide for details), and use the following command:
adb shell settings put global http_proxy [proxy ip]:[proxy port]
To disable the proxy:
adb shell settings put global http_proxy :0
HTTP Proxy with authentication
Built-in proxy settings with authentication is not available on Android 8.1 and above. A third party application is necessary.
We recommend Proxy Client: it works with all our Genymotion products and is available for free. It can easily be installed in Google Play Store.
Socks5 proxy
Android does not support Socks5 proxies natively; a third party application is also necessary.
We recommend Proxy Client: it supports Socks5 proxy and works with all our Genymotion products. It is available for free and can easily be installed from Google Play Store.
Extra (Genymotion Desktop only)
Important
The following will only work with Genymotion Desktop, and if you run a local proxy on the same host.
With VirtualBox
You can use the IP address 10.0.3.2
from the virtual device: IP 10.0.3.2
is a VirtualBox alias to your host loopback interface (i.e., 127.0.0.1 on your host machine).
So, if your local Proxy listens to *:8080
, it can be accessed from the virtual device using the IP 10.0.3.2:8080
. All you need is to set Android proxy to this address and port.
With QEMU
Unlike VirtualBox, there is no loopback interface when using QEMU. However, it is possible to use adb reverse
to bind a virtual device local port to a host local port.
First set Android global proxy to localhost:3333 (or any other available port).
Then, if your local Proxy listens to localhost:8080
, use this command:
adb reverse tcp:3333 tcp:8080
In this example, this will bind the virtual device local TCP port 3333 to your host machine local TCP port 8080.