How to connect a virtual device to a proxy?
Warning: Make sure to unset your proxy before closing your device, or it may not have any Internet connection the next time it is launched.
HTTP Proxy without authentication
1. From Android interface
- From Android interface, open 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.
- 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 are not available on Android 8.1 and above.
- A third party application is necessary.
- We recommend Proxy Client.
- Proxy Client works with all 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.
- Proxy Client supports Socks5 proxies and works with all Genymotion products.
- It is available for free and can 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.
- The 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.
- 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.
Was this article helpful? Yes No 47 out of 88 found this helpful
Need more help? Request Technical Support
Related articles
- How to use Genymotion Desktop behind a proxy?
- I can't find Google Play Store. Where is it?
- How to redirect network traffic to a local proxy with Genymotion SaaS?
- How to connect to a Genymotion Desktop virtual device remotely with ADB?
- How to use Burp suite with Genymotion Desktop?