Setting a proxy for Windows using the command-line

Set a proxy for Windows using netsh.
created by on 2013-09-03

Set a proxy

Example: Tunnel all your internet traffic through a socks proxy

netsh winhttp set proxy proxy-server="socks=localhost:9090" bypass-list="localhost"

View the current proxy settings

netsh winhttp show proxy

Clear all proxy settings

Remove all configured proxies and connect directly.

netsh winhttp reset proxy


Fork allmark on GitHub