When switching between different network environments, You need to manually modify the IP address and IE proxy settings, which is complicated. You can write the corresponding bat batch processing script to automatically complete the configuration and achieve one-click switching. The following is an example:
@ Echo off: Echo set IP...: netsh interface IP Set address name = "Local Connection" Source = static ADDR = xxx. xxx. xxx. xxx mask = xxx. xxx. xxx. XXX: Echo set gateway ....: netsh interface IP Set address name = "Local Connection" Source = static gateway = xxx. xxx. xxx. xxx gwmetric = 1 echo set ie Proxy: XXX. xxx. xxx. XXX: 8080reg Add "hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"/V proxyenable/T REG_DWORD/D 1/freg Add "hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet settings "/V proxyserver/D" XXX. xxx. xxx. XXX: 8080 "/F :: skip the proxy server Reg Add "hkcu \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings"/V proxyoverride/T REG_SZ/D "<local>"/fecho flash ... ipconfig/flushdns
XXX. XXX is the IP address of the corresponding attribute. For example, "XXX. XXX: 11th" in line 8080 is the IP address and port (8080) of the target proxy server. Both of them can be modified according to their own environment.