# Proxy that requires authentication

**URL:** https://forum.syncthing.net/t/proxy-that-requires-authentication/8156
**Category:** Support
**Created:** [September 2, 2016, 10:49pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156 "2016-09-02T22:49:33Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gilli](https://forum.syncthing.net/user_avatar/forum.syncthing.net/gilli/32/252_2.png) [@gilli](https://forum.syncthing.net/u/gilli)
#### Post date: [September 2, 2016, 10:49pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/1 "2016-09-02T22:49:34Z")

</div>

Can I use a SOCKS5 proxy that requires authnetication? I set up the proxy using all\_proxy=socks5://address.com:1234 but it is not clear to me if/how I can set user and pass for it.

Cheers, Gilli

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [September 2, 2016, 11:21pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/2 "2016-09-02T23:21:57Z")

</div>

At a guess, `all_proxy=socks5://username:password@example.com:1234`?

---

<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: [September 3, 2016, 2:36am UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/3 "2016-09-03T02:36:46Z")

</div>

Yes, that should work.

---

<div class="post-metadata">

### Author: ![gilli](https://forum.syncthing.net/user_avatar/forum.syncthing.net/gilli/32/252_2.png) [@gilli](https://forum.syncthing.net/u/gilli)
#### Post date: [September 3, 2016, 10:27am UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/4 "2016-09-03T10:27:32Z")

</div>

Hmm, I can’t seem to get it to work that way. I still get rejected username and password

---

<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: [September 3, 2016, 12:38pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/5 "2016-09-03T12:38:42Z")

</div>

I checked the code and it should work, as it extracts auth from the URL, so I guess your problem is somewhere else. Sadly I don’t have anything to test or debug against.

---

<div class="post-metadata">

### Author: ![gilli](https://forum.syncthing.net/user_avatar/forum.syncthing.net/gilli/32/252_2.png) [@gilli](https://forum.syncthing.net/u/gilli)
#### Post date: [September 3, 2016, 5:31pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/6 "2016-09-03T17:31:12Z")

</div>

Hmm okay I guess I simply used the wrong password. Unfortunately now I am getting another error:

```
UPnP parse: Get http://192.168.1.1:0/rootDesc.xml: proxy: port number out of range: 0

```

I am using port 1080 for the proxy if that matters.

---

<div class="post-metadata">

### Author: ![Alex](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@Alex](https://forum.syncthing.net/u/Alex)
#### Post date: [September 3, 2016, 6:37pm UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/7 "2016-09-03T18:37:28Z")

</div>

that error is from UPnP which obviously does not work with a proxy 😉

---

<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: [September 4, 2016, 8:00am UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/8 "2016-09-04T08:00:35Z")

</div>

Yeah UPnP will most likely not work via proxy, but to be honest, the router here is returning the wrong response it seems.

---

<div class="post-metadata">

### Author: ![gilli](https://forum.syncthing.net/user_avatar/forum.syncthing.net/gilli/32/252_2.png) [@gilli](https://forum.syncthing.net/u/gilli)
#### Post date: [September 4, 2016, 10:38am UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/9 "2016-09-04T10:38:29Z")

</div>

Hmm okay I tried everything once again from the start and now it seems to be finally syncing through the proxy.

Thanks for your help.

---

<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: [October 4, 2016, 10:50am UTC](https://forum.syncthing.net/t/proxy-that-requires-authentication/8156/10 "2016-10-04T10:50:32Z")

</div>

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