- Warning: Make sure to unset your proxy before closing your device.
- Otherwise, the device may not have any Internet connection the next time it is launched.
HTTP Proxy without authentication
1. From Android interface
1. Open Menu > System settings.
2. In Wireless & Networks, select Wi-Fi.
3. Tap WiredSSID and hold it down for two seconds.
4. Tap Modify Network.
5. Check Show advanced options.
6. In Proxy settings, select Manual.
7. Enter the proxy settings provided by your network administrator.
8. Tap Save.
2. By command line
- Connect your device to ADB.
- Run the command: adb shell settings put global http_proxy [proxy ip]:[proxy port].
- To disable the proxy, run: 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.
- Proxy Client is recommended.
- Proxy Client works with all Genymotion products and is available for free.
- Proxy Client can be installed from Google Play Store.
Socks5 proxy
- Android does not support Socks5 proxies natively.
- A third party application is also necessary.
- Proxy Client supports Socks5 proxies.
- Proxy Client works with all Genymotion products.
- Proxy Client is available for free and can be installed from Google Play Store.
Extra (Genymotion Desktop only)
> 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).
- 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.
- 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.