It quite easy to set proxy through command prompt ans to enable or disable proxy settings.
Through Command:
1. To set proxy:
netsh winhttp set proxy [proxy server address:port number] [bypass list]
Example : netsh winhttp set proxy 192.168.1.2:8080 *.192.168.1.2
Result:
Current WinHTTP proxy settings:
Proxy Server(s) : 192.168.80.2:8080
Bypass List : *.192.168.80.2
2. To check the proxy settings:
netsh winhttp show proxy
3. To remove proxy settings:
netsh winhttp reset proxy
Through Registry:
1. Open regedit.exe
2. Navigate to "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
3. Create a DWORD "ProxyServer" and give the data as the proxyserver:port example: 192.168.80.2:8080
4. The above step will enable the proxy and make the data to "0" to disable proxy.
Through Command:
1. To set proxy:
netsh winhttp set proxy [proxy server address:port number] [bypass list]
Example : netsh winhttp set proxy 192.168.1.2:8080 *.192.168.1.2
Result:
Current WinHTTP proxy settings:
Proxy Server(s) : 192.168.80.2:8080
Bypass List : *.192.168.80.2
2. To check the proxy settings:
netsh winhttp show proxy
3. To remove proxy settings:
netsh winhttp reset proxy
Through Registry:
1. Open regedit.exe
2. Navigate to "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
3. Create a DWORD "ProxyServer" and give the data as the proxyserver:port example: 192.168.80.2:8080
4. The above step will enable the proxy and make the data to "0" to disable proxy.
No comments:
Post a Comment