For IP scripting tools, dedicated to the network environment, the ultra-complex code farmer compatriots

  
For players who often travel in different locations and are in a complex network environment, changing IP is a headache, such as writing code before me. Resident is telecommunications broadband, wired and wireless, maybe there will be a fault, back to live, use telecommunications, still wired and wireless can choose, return to the company, China Unicom broadband, cable sometimes bind IP, MAC, will also tie Fixed ports, wireless networks are often very poor, sometimes, you will need to use goagent to climb the wall, and sometimes you may not want wired and wireless to be enabled at the same time. . . The various segments of the network are all kinds of strange, DNS can not remember, fortunately, with this script, let the IP become a kind of enjoyment ~~, haha, the following code, streamlined or modified into what you need Part, save it as ip.bat on the desktop, things become much simpler ~ C code @echo off @rem Set the proxy server address to use ================= ============= set ProxyServerValue=127.0.0.1:8087 @rem No need to use the address of the proxy server, note: ",<local>" means to activate the address that you don't need, be sure to Keep set ProxyOverrideValue="10.*,<local>" @rem ================================ ======================================================================================================== ============================ Echo 1: Wireless automatic echo 2: Wireless police echo 3: Wired automatic echo 4: Wired dormitory echo 5: Wired Public Security echo 6: Wired Xiaoshan echo 7: Wireless Dormitory echo 8: Wireless Xiaoshan echo ============================= ====== echo P: Set proxy echo N: Cancel proxy echo EB: Enable local connection echo DB: Disable local connection echo EW: Enable wireless connection echo DW: Disable wireless connection echo Q: Exit echo. @echo off set /p input=Select a place to go and press Enter: if "%input%"=="1" goto IP_1 if "%input%"=="2" goto IP_2 if "%input%" ;=="3" goto IP_3 if "%input%"=="4" goto IP_4 if "%input%"=="5" goto IP_5 if "%input%"= ="6" goto IP_6 if "%input%"=="7" goto I P_1 if "%input%"=="8" goto IP_1 if "%input%"=="p" goto IP_P if "%input%"=="P" goto IP_P if "%input%"=="n" goto IP_N if "%input%"=="N" goto IP_N if "%input%"=="eb" goto IP_EB if " %input%"=="EB" goto IP_EB if "%input%"=="db" goto IP_DB if "%input%"=="DB" goto IP_DB if "%input %"=="ew" goto IP_EW if "%input%"=="EW" goto IP_EW if "%input%"=="dw" goto IP_DW if "%input%" ;=="DW" goto IP_DW
Copyright © Windows knowledge All Rights Reserved