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
-
Unless the software you are using was built with support for SOCKS proxies, this cannot work. Then, it must also look at the settings you set. Windows software will often (not always!) use the settings from the existing answers. Make sure to check each program's help/documentation.– Daniel BFeb 19 at 22:01
5 Answers
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:
- Take note of your public IP address by searching Google for "my ip" (open this in a new tab and keep it open)
- Open
Internet Options
(either by searching in the start/search bar, or throughControl Panel
>Network and Internet
>Internet Options
)
- Open the
Connections
tab and clickLAN Settings
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:
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:
- 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)
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
To set the SOCKS proxy on Windows 11, set the protocol and the equal signal before the address of proxy:
I use it with ssh/putty to make a vpn.
The Windows 10 proxy setup UI is terrible.
To use socks, you need to enter this into the address field:
http://socks=localhost
Replace localhost with the actual proxy address.
Set the port as per usual.
-
Hrm, this doesn't seem to be working... afaict this is just causing windows to ignore the proxy setting completely (unlike just putting in
localhost
, which causes the connection to fail completely) Jan 17, 2021 at 21:26 -
The only answer which made it for me. Now just wondering where is this documented.– IgnasiMar 2, 2022 at 22:40
-
I found this by accessing the old system Proxy Configuration (eg, via Internet Explorer), setting the SOCKS proxy through that, and then observing what happened to the Windows 10 proxy setting. Likely, this isn't actually documented anywhere.– RyanMar 3, 2022 at 5:21
-
Actually, you have to type here just
socks=localhost
. Then if the windows is closed and reopened, it will prependhttp://
to it making it an invalid configuration. If then you accept that it will just silently ignore it, so it looks like it is accepting it, but it is doing nothing at all.– rodrigoJul 7, 2022 at 14:39
If you use Windows 10, follow the steps below to set proxy:
Open Settings.
Click Network & Internet.
Click Proxy.
In the Manual Proxy Setup section, set the Use a Proxy Server switch to On.
In the Address field, type the IP address.
In the Port field, type the port.
Click Save; then close the Settings window.
There is 4 main types of proxy:
- HTTP — allows to visit web-sites and download files from HTTP.
- HTTPS — also called SSL proxies. With these proxies you can view HTTP and HTTPS sites.With special software they may be used with any protocol like SOCKS proxies.
- Socks 4 — can be used with any TCP/IP protocol with any destination address and port..
- Socks 5 — you may also use UDP protocol, make DNS requests, und use BIND function for port forwarding.
-
1
-
Then your sock/proxy doesn't work, or couldn't connect. Which one you use? A proxy server from a website, or SSH?– Mike DFeb 25, 2020 at 15:30
-
Well, I am not sure about this. I guess that it is a proxy server from a website. I just know that my proxy is a IP:port. Sock is a proxy feature?? Is possible that my proxy works ok with http protocol and not works with sock protocol?? Thank.– AGHAFeb 25, 2020 at 15:47
-
It's possible. You can go to hidemy.name/en/proxy-list and get a few other proxies to test whether it's work or not.– Mike DFeb 25, 2020 at 15:51
-
Ok I understand. Is there any way to redirect the socks request to http?– AGHAFeb 25, 2020 at 16:07
The only way I was able to set a socks proxy in windows 10 was via Internet Explorer.
Search for and run the Internet Explorer App.
From the Tools menu click on Internet Options.
Click on the Connections tab.
Click the "LAN settings" button.
Add a check to the "Use a proxy server for your LAN" if its not already checked.
Click on the Advanced setting
Uncheck the box for "Use the same proxy server for all protocols" if it's checked.
Set your SOCKS server here and clear the fields for all the other proxy types.
Click OK, click OK, click OK, and now your system is configured to use a SOCKS proxy.