Shadowsocks Windows: What the System Proxy Toggle Reaches

The one-line promise in every shadowsocks windows guide is the same: tick Enable System Proxy and the whole machine goes through the tunnel. On Windows that promise has a structure behind it, because Windows keeps more than one proxy stack, and a toggle that writes one of them does not silently rewrite the others.

We measured the boundary instead of repeating it. Four client calls were aimed at a plain SOCKS5 door on 127.0.0.1, the WinHTTP stack was queried directly, and the AppContainer loopback exemption list was read. Two calls crossed the door with full logs; two were refused before a handshake existed.

1080default local port, SOCKS5 and HTTP on one door
2 / 4client calls the plain door accepted
0AppContainer loopback exemptions on the test machine
3proxy stacks on Windows behind one toggle

The toggle reaches the per-user WinINET stack. The service stack stayed on direct access, and .NET refused a socks5 proxy address outright.

measured

1. What the toggle actually switches

Shadowsocks for Windows is a .NET Framework 4.8 tray application that listens on 127.0.0.1:1080 by default, and the same port speaks SOCKS5 and HTTP, which is why the project's README tells readers they can set either one in a browser. Enable System Proxy does not touch every network setting on the machine. It writes the per-user WinINET configuration through a helper component, and it can do that in two flavors: global mode, which points the whole user session at the local port, or PAC mode, where a generated list built from the geosite database decides which hostnames ride the tunnel and which connect directly. Since version 4.3.0.0 the generated list defaults to whitelist mode, so domains outside the direct list go through the proxy.

That description already names the boundary this page measures: a per-user, user-agent-level setting. Anything that does not read WinINET settings, or that reads them with a resolver that cannot handle a socks address, sits outside the toggle no matter how loudly it advertises system proxy support. The README's own component list makes the mechanism visible: shipping with the client is a small helper called sysproxy, whose only job is to write those per-user settings, which is a precise scope for a feature users describe as system-wide.

2. Four calls at a plain door

The test used a bare SOCKS5 listener on 127.0.0.1:1180 that records every handshake: the method list, the command, the address type and the target. Against it we fired the four calls a Windows user realistically makes when pointing software at a Shadowsocks door. The full run finished within the 06:59:58Z window, and the door's log is the table below.

Four client calls aimed at a plain SOCKS5 door on 127.0.0.1:1180, with door-side logs and outcomes.
Call as typedDoor-side logOutcome
curl, socks5h schememethod 0001, atyp 3, target example.orgHTTP 200 in 0.54 s
curl, socks5 schememethod 0001, atyp 1, target 104.20.26.136HTTP 200 in 0.52 s
PowerShell, socks5 schemeno handshake reached the doorNotSupportedException: ServicePointManager does not support the socks5 scheme
PowerShell, http prefixtwo connections logged as not socks5WebException: the underlying connection was closed

The two curl rows are one measurement wearing two addresses. Told socks5h, curl handed the door the bare hostname and let resolution happen past the exit; the log shows address type 3 carrying example.org. Told plain socks5, curl resolved the hostname on the machine first and handed the door a finished IPv4, 104.20.26.136, under address type 1. Same door, same judge, one byte of difference in the request, and the location of your DNS resolution changed with it.

The two PowerShell rows are the refusals. The .NET Framework stack behind PowerShell 5.1 raised NotSupportedException before any socket was opened, and with an http prefix it sent an HTTP request to a door that speaks SOCKS5, which the door logged as two rejected connections. A mixed-protocol port forgives the second mistake only if the application retries properly; the framework simply closed the connection.

3. Where the toggle stops

Windows separates proxy configuration into stacks that do not inform each other. The table below is the measured state of this test machine, and the client's own documentation confirms the gaps rather than denying them.

Three Windows proxy stacks behind one system-proxy toggle, with measured state and toggle reach.
StackWho lands thereMeasured hereToggle reach
WinINET, per-userbrowsers and most desktop appsthe stack the toggle writes; .NET reads it but refuses socks5 addressesreached
WinHTTP, serviceservices, Store apps, some CLIsnetsh winhttp show proxy: direct accessnot reached; official fix is netsh winhttp import proxy source=ie
AppContainer loopbackUWP apps dialing 127.0.0.1CheckNetIsolation listed zero exemptionsexplicit per-app grant only

Two of those rows come straight from the machine: the service stack reported direct access, and the exemption list held zero AppContainer entries. The third row is the README speaking for itself. For Windows Store applications the project instructs an administrator to run netsh winhttp import proxy source=ie, which copies the user-session settings into the service stack; and for UDP the README states that you need SocksCap or ProxyCap to force programs to tunnel over Shadowsocks. A toggle that needs two helper commands to cover the rest of the machine is a per-user setting, and treating it as a machine-wide switch is where misconfigured setups come from.

4. A configuration that survives the gaps

The reliable path on Windows is per-application, not per-machine. Point the browser that matters at 127.0.0.1:1080 explicitly and choose the address scheme by where you want DNS to happen: socks5h for hostnames resolved past the exit, plain socks5 when the local resolver is trusted and faster. Command-line tools that ship their own proxy flag take the same address. For the service and Store tier, run the README's import command once after enabling the toggle, or leave that tier unproxied on purpose, because routing Windows update traffic through a personal tunnel is rarely what you want.

The concrete checklist reads the same everywhere. Server address 127.0.0.1, port 1080, protocol SOCKS5, and the socks5h spelling wherever the tool accepts a URL form. If an application offers no proxy field at all, check whether it reads system settings before assuming the toggle has failed; if it reads system settings and still connects directly, it is likely living on one of the other stacks, and the table above tells you which one to bridge.

This is also the honest boundary of the product category. Shadowsocks on Windows is a strong TCP tunnel with a shared local door; it is not a per-application network layer, and no system proxy toggle on any platform makes it one. When the goal is separating identities rather than encrypting a link, the isolation has to come from a different layer, and our sibling pages test that layer directly: the wire-format page measures what the tunnel hides, and the mac page shows the same shared door on another platform.

Need the isolation layer the toggle cannot provide?

Download RoxyBrowser

Profiles with separate proxies and cookie jars keep identities apart where a system proxy merges them.

Frequently Asked Questions

Does the Shadowsocks Windows system proxy toggle cover every application?

No. The toggle writes the per-user WinINET proxy settings, which browsers and most desktop apps follow. Windows services and Microsoft Store apps sit on the separate WinHTTP stack: on our test machine netsh winhttp show proxy reported direct access, and the client's own README bridges that gap with netsh winhttp import proxy source=ie.

What port does Shadowsocks for Windows listen on?

Port 1080 on 127.0.0.1 by default. The same port speaks both SOCKS5 and HTTP, so an application can be pointed at it either way; the port can be changed under Servers, Edit Servers.

What is the difference between socks5h and socks5 in a proxy address?

In our measurement the same door logged atyp 3 with the hostname example.org when curl was told socks5h, and atyp 1 with the already-resolved address 104.20.26.136 when curl was told socks5. socks5h resolves the hostname past the exit; socks5 resolves it on your machine first.

Does Shadowsocks on Windows carry UDP traffic?

Not by itself. The project's README states that for UDP you need tools such as SocksCap or ProxyCap to force programs to tunnel over Shadowsocks, so the local SOCKS5 door is a TCP tunnel on this platform.