# How to use Proxy under Windows 10

**URL:** https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488
**Category:** Support
**Created:** [February 11, 2020, 2:03pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488 "2020-02-11T14:03:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![glissa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@glissa](https://forum.syncthing.net/u/glissa)
#### Post date: [February 11, 2020, 2:03pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/1 "2020-02-11T14:03:20Z")

</div>

Hello,

after trying to get SyncThing and SyncTrayzor to use a Socks5-Proxy for about two days, without any success, I hope someone can help me/point me in the right direction. Somehow I can’t find any tutorial on how to do this. The “Using Proxies” chapter in the Docs doesn’t really help for windows at all. I already tried setting a System-wide Environment Variable and I used the field in SyncTrayzor, without success.

I really hope someone can help with that.

Greetings, Glissa

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [February 11, 2020, 2:37pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/2 "2020-02-11T14:37:36Z")

</div>

It prints a message in the logs if it finds proxy environment variable, so you could check if its being picked up.

---

<div class="post-metadata">

### Author: ![glissa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@glissa](https://forum.syncthing.net/u/glissa)
#### Post date: [February 11, 2020, 5:11pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/3 "2020-02-11T17:11:37Z")

</div>

Thanks for the fast reply. As far as I can see, it is not picked up. In the SyncTrayzor settings under “Syncthing Environmental Variables” my config is: proxy\_all=socks5:127.0.0.1:xxxxx; ALL\_PROXY\_NO\_FALLBACK=1

SyncThing should not connect to a network, without the Proxy running, if I understand the function of ALL\_PROXY correctly. It doesn’t matter wether the Proxy is up or down, SyncThing connects to a relay server in both cases, after detecting strict NAT from the firewall. There is nothing in the logs indicating anything about proxy-usage or the IP/Port used/to use.

> **Summary**
>
> 17:52:56 INFO: syncthing v1.3.4 “Fermium Flea” (go1.13.7 windows-amd64) teamcity @build.syncthing.net 2020-01-14 07:01:03 UTC
> 
> 17:52:56 INFO: My ID: xxxxx
> 
> 17:52:57 INFO: Single thread SHA256 performance is 1120 MB/s using minio/sha256-simd (261 MB/s using crypto/sha256).
> 
> 17:52:57 INFO: Hashing performance is 586.25 MB/s
> 
> 17:52:57 INFO: Overall send rate is unlimited, receive rate is unlimited
> 
> 17:52:57 INFO: Using discovery server https ://discovery.syncthing.net/v2/?noannounce&id=LYXKCHX
> 
> 17:52:57 INFO: Using discovery server https ://discovery-v4.syncthing.net/v2/?nolookup&id=LYXKCHX
> 
> 17:52:57 INFO: Using discovery server https ://discovery-v6.syncthing.net/v2/?nolookup&id=LYXKCHX
> 
> 17:52:57 INFO: Ready to synchronize “xxxxx” (default) (sendreceive)
> 
> 17:52:57 INFO: QUIC listener ([::]:22000) starting
> 
> 17:52:57 INFO: Relay listener (dynamic+https ://relays.syncthing.net/endpoint) starting
> 
> 17:52:57 INFO: TCP listener ([::]:22000) starting
> 
> 17:52:57 INFO: GUI and API listening on 127.0.0.1:8384
> 
> 17:52:57 INFO: Access the GUI via the following URL: http ://localhost:8384/
> 
> 17:52:57 INFO: My name is “xxxxx”
> 
> 17:52:57 INFO: Device xxxxx is “syncthing” at [dynamic]
> 
> 17:53:00 INFO: Completed initial scan of sendreceive folder “xxxxx” (default)
> 
> 17:53:09 INFO: New NAT port mapping: external TCP address xxx.xxx.xxx.xxx:xxx to local address 0.0.0.0:22000.
> 
> 17:53:09 INFO: New NAT port mapping: external TCP address xxx.xxx.xxx.xxx:xxx to local address 0.0.0.0:22000.
> 
> 17:53:09 INFO: Detected 3 NAT services
> 
> 17:53:16 INFO: Established secure connection to xxxxx at xxx.xxx.xxx.xxx:22000-xxx.xxx.xxx.xxx:xx673/tcp-server/TLS1.3- TLS\_AES\_128\_GCM\_SHA256
> 
> 17:53:16 INFO: Device xxxxx client is “syncthing v1.3.0” named “syncthing” at xxx.xxx.xxx.xxx:22000-xxx.xxx.xxx.xxx:xx673/tcp-server/TLS1.3-TLS\_AES\_128\_GCM\_SHA256
> 
> 17:53:17 INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT
> 
> 17:53:17 INFO: quic://0.0.0.0:22000 resolved external address quic://xxx.xxx.xxx.xxx:22000 (via [stun.syncthing.net:3478](http://stun.syncthing.net:3478))
> 
> 17:53:18 INFO: Connected to already connected device xxxxx (existing: xxx.xxx.xxx.xxx:22000-xxx.xxx.xxx.xxx:xx673/tcp-server/TLS1.3- TLS\_AES\_128\_GCM\_SHA256 new: xxx.xxx.xxx.xxx:xx548-xxx.xxx.xxx.xxx:xx067/relay-client/TLS1.3-TLS\_AES\_128\_GCM\_SHA256)
> 
> 17:53:35 INFO: Joined relay relay://xxx.xxx.xxx.xxx:443

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [February 11, 2020, 7:49pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/4 "2020-02-11T19:49:37Z")

</div>

Syncthing respects proxy settings even when connecting to relays, as in some cases proxy is the only way out. If it’s not, that is why we have the fallback which you are explicitly disabling.

It seems env var you set is invalid as it’s missing slashes, so I wouldn’t be surprised if go just ignores it.

---

<div class="post-metadata">

### Author: ![glissa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@glissa](https://forum.syncthing.net/u/glissa)
#### Post date: [February 11, 2020, 8:14pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/5 "2020-02-11T20:14:25Z")

</div>

Oh, that is quite embarassing.

After inserting the slashes and double checking everything with the doku, nothing changes. The Log still shows exactly the same lines, only changing the IP-Adresses of the discovery/relay servers.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [February 11, 2020, 8:20pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/6 "2020-02-11T20:20:39Z")

</div>

I suggest you try running syncthing outside of synctrayzor, via cmd, setting the env var before hand in the same shell and see if that works.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [February 11, 2020, 8:35pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/7 "2020-02-11T20:35:41Z")

</div>

> [@glissa](#):
>
> proxy\_all=socks5:127.0.0.1:xxxx

You want `all_proxy`, not `proxy_all`.

[https://docs.syncthing.net/users/proxying.html](https://docs.syncthing.net/users/proxying.html)

---

<div class="post-metadata">

### Author: ![glissa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@glissa](https://forum.syncthing.net/u/glissa)
#### Post date: [February 11, 2020, 8:54pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/8 "2020-02-11T20:54:21Z")

</div>

Thank you both for answering.

I just did as @AudriusButkevicius suggested and started SyncThing via cmd and voila, proxy works.@calmh, yes, I corrected the commands, it did not change anything.

I guess I will write a batchfile to start Syncthing instead of using SyncTrayzor, sadly.

Does it make any difference to write socks or socks5? The Doku has both in it, but at least in SyncTrayzor neither of them seems to do anything. In cmd socks seems to work.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [March 12, 2020, 8:54pm UTC](https://forum.syncthing.net/t/how-to-use-proxy-under-windows-10/14488/9 "2020-03-12T20:54:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
