The solution to the bridging problem of the lightning simulator and the solution to the problem of ADB changing the network proxy

insert image description here

1. Change the network settings of the thunderbolt simulator

insert image description here
1. Select "Enable"
2. Select the bridge network card: open the control panel - network connection - change the adapter to view
insert image description here3. Click "click to install" to install the driver
4. Configure static IP
insert image description here
and choose a static IP address in the same network segment. Side selection: 192.168.8.11
Click "Save" - ​​"Restart Simulator"

2. ADB changes the global network proxy

Note: After the proxy is configured, it cannot be viewed inside the virtual machine, but can only be viewed through adb.

set proxy

adb shell settings put global http_proxy 192.168.8.8:8088

Remove proxy method 1: Restart required

adb shell settings delete global http_proxy
adb shell settings delete global global_http_proxy_host
adb shell settings delete globan global_http_proxy_port
adb reboot

Remove proxy method 2: no restart required

adb shell settings put global http_proxy :0

Guess you like

Origin blog.csdn.net/dakhda/article/details/131293851
Recommended