How to set socks proxy on windows

PROXY

Hi I have a PC with a proxy internet connection. When I use for example flutter it needs to download some dependencies by sock connection. How can I set a global configuration for my PC to use socks connection to internet? Thanks

Best Answer

Windows' basic proxy settings in "Network and Internet" don't seem to actually allow setting a SOCKS proxy explicitly.

To set a SOCKS proxy (SOCKS4 or SOCKS5, I believe) on Windows 10:

  1. Take note of your public IP address by searching Google for "my ip" (open this in a new tab and keep it open)

External IP address from Google

  1. Open Internet Options (either by searching in the start/search bar, or through Control Panel > Network and Internet > Internet Options)

Open internet options

  1. Open the Connections tab and click LAN Settings

Connections tab

  1. Check the box to "Use a proxy server for your LAN". You'll likely also want to check "Bypass proxy server for local addresses". Then click the "Advanced" button: LAN Settings

  2. Uncheck "Use the same proxy server for all protocols", remove all proxy addresses except for "Socks", and replace the Socks address/port with that of your server:

Advanced Proxy Settings

  1. Click OK on the Proxy Settings window, OK on the LAN Settings window, and Apply on the Internet Properties window. All connections should now be going through your SOCKS proxy. Double check by again searching Google for "my ip" and comparing to your original external IP address (this should now show the IP address of your SOCKS5 server)

New external IP address reported by Google

Credit to https://windowsreport.com/windows-10-socks5-proxy-settings/ for getting me pointed in the right direction, after trying the suggestions on this page

Related Question