# syntching cannot connect to private strelaysrv

**URL:** https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763
**Category:** Support
**Created:** [March 6, 2024, 8:48am UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763 "2024-03-06T08:48:03Z")
**Posts on this page:** 11
**Page:** 3

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [March 12, 2024, 8:40pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/41 "2024-03-12T20:40:18Z")

</div>

No, the device ID is based on the instance’s local TLS certificate. Which serves for both encryption and cryptographically assuring the device identity, so no other device can impersonate it and receive data not actually shared to them.

What the discovery server does is simply returning a list of known addresses for a provided device ID. The requesting devices know the ID because they are configured to connect to it and share some folders. When a device publishes its addresses on global discovery, it proves its identity using the same certificate and private key, to fend off DoS attacks by some stranger publishing wrong addresses to discovery.

Our documentation site has some good explanation of these concepts, though sometimes scattered over different parts. This might give a good overview: [Security Principles — Syncthing documentation](https://docs.syncthing.net/users/security.html) and [Understanding Device IDs — Syncthing documentation](https://docs.syncthing.net/dev/device-ids.html)

---

<div class="post-metadata">

### Author: ![Ken](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Ken](https://forum.syncthing.net/u/Ken)
#### Post date: [March 12, 2024, 9:14pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/42 "2024-03-12T21:14:31Z")

</div>

Ok, i understand it better now, have opened those links in tabs and will read through it but I really needed all those explanations. The documentation is very good the only thing I wish it had some examples under most complicated sections kinda small drawing that shows the devices as well as screen shots of the configurations and we would get this “a-ha” feeling much faster also some different scenarios with and without relay etc… otherwise the doc looks very good in general it covers everything but as mentioned some examples would make doc explanation easier to understand.

Thank you once again so much for your patience and time for explaining all this in depth! it is really appreciated! If I can buy a beer let me know 🙂

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [March 13, 2024, 4:52am UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/43 "2024-03-13T04:52:37Z")

</div>

Yes it could be improved in many places. Written by developers and not always oriented toward inexperienced users. But then again, writing good docs is really hard and time consuming. So maybe better spend that time here on the forum answering actual questions where you don’t need to guess what others could be wanting to know.

Thanks for the offer. You’re welcome, I’m happy to help.

---

<div class="post-metadata">

### Author: ![Ken](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Ken](https://forum.syncthing.net/u/Ken)
#### Post date: [March 13, 2024, 2:11pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/44 "2024-03-13T14:11:29Z")

</div>

oh just one last thing I forgot to verify yesterday but I had it in my mind, I know I had something to ask but I forgot it and I came. across it just now.

What would be the best term to describe the difference between Relay and Discovery servers in general ? because both of those does the “similar” job if I am not mistaken ? Both can be used over the internet as well as locally only…

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [March 13, 2024, 2:20pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/45 "2024-03-13T14:20:30Z")

</div>

Discovery servers help in, well, _discovering_ where a device can be reached.

Relay servers, well, _relay_ the data between devices that are unable to make a direct connection. You need a working discovery server (or configure the address directly) so Syncthing knows which relay a certain remote device can be contacted through.

Another difference is the quantity: There is a large pool of relay servers (with a relaypoolsrv for load balancing) run by volunteers donating their bandwidth. While only a handful of discovery servers are centrally operated by the Syncthing maintainers and configured by default.

---

<div class="post-metadata">

### Author: ![Ken](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Ken](https://forum.syncthing.net/u/Ken)
#### Post date: [March 13, 2024, 7:40pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/46 "2024-03-13T19:40:50Z")

</div>

ok got that, thanks a lot again! it really helped! As mentioned earlier the easiest way is to leave all at the default settings but you are not learning that way that is one of the reasons among several reasons why I am experimenting with different combinations as well.

---

<div class="post-metadata">

### Author: ![Ken](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Ken](https://forum.syncthing.net/u/Ken)
#### Post date: [March 13, 2024, 8:23pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/47 "2024-03-13T20:23:23Z")

</div>

just tried all the combinations I got it all working apart from this message when I try to use own discovery server in the Global Discovery Servers instead of default, again I will probably use default in the future but just curious to get it working.

Discovery server is now started and firewall is opened and I see in the logs that one of my remote PC is trying to connect to it from its WAN ip address and I see this message (related to certificate)

 ![image](https://forum-uploads.syncthingcdn.net/original/3X/5/6/56da13b2c32cce80f2181d2606900497232dcf07.png)

I have opened port 8443 in the firewall… Btw here is the command I have used in win to start the Discovery server:

C:\stdiscosrv-windows-amd64-v1.23.4\>stdiscosrv.exe -cert=./cert.pem -key=./key.pem

trying to use default certs

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [March 13, 2024, 10:10pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/48 "2024-03-13T22:10:31Z")

</div>

Well obviously your TLS certificate needs to be valid, but isn’t. You could try with Let’s Encrypt. Not sure how I solved that part actually, it’s been some time.

---

<div class="post-metadata">

### Author: ![Ken](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Ken](https://forum.syncthing.net/u/Ken)
#### Post date: [March 13, 2024, 11:13pm UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/49 "2024-03-13T23:13:44Z")

</div>

ok, this may be outside of my knowledge scope for now so I will cancel this process for now I think.

thank you for the info!

---

<div class="post-metadata">

### Author: ![skitidal](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@skitidal](https://forum.syncthing.net/u/skitidal)
#### Post date: [March 22, 2024, 10:34am UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/50 "2024-03-22T10:34:10Z")

</div>

I just think you might be better off getting direct connections to work first, without using a custom relay.

---

<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: [April 21, 2024, 10:34am UTC](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763/51 "2024-04-21T10:34:52Z")

</div>

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

[Previous page](https://forum.syncthing.net/t/syntching-cannot-connect-to-private-strelaysrv/21763.md?page=2)
