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.
Genymotion Desktop & Genymotion SaaS (Cloud)
Oxy Proxy Manager works well on Genymotion Desktop and Genymotion SaaS (Cloud) and is easy to use. You can install it from Google Play Store.
Genymotion Device Image for Cloud providers
Oxy Proxy Manager does not work correctly with Genymotion Device Image. Instead, use Super Proxy - you can install it from Google Play Store.
Socks5 proxy
Android does not support Socks5 proxies natively; a third party application is necessary.
During our tests, SocksDroid has shown the best results and compatibility with all our Genymotion solutions. You can install it from Google Play Store.
Important
SocksDroid only works for Socks5 Proxy.
Extra (Genymotion Desktop only): Genymotion Desktop and your Proxy run 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.