# Privacy: device ID -\> IP tracking via discovery

**URL:** https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365
**Category:** Feature
**Created:** [November 16, 2026, 4:16pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365 "2026-11-16T16:16:51Z")
**Posts on this page:** 6
**Page:** 2

<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: [November 17, 2026, 2:37pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/21 "2026-11-17T14:37:03Z")

</div>

I think your proposal has merit, even though it complicates things a bit.

> [@bt90](#):
>
> DHT structure that can be crawled

Can it though? I was under the impression the keys were `get` only, no search over the DHT protocol. (The DHT nodes themselves can of course be iterated, so you can trivially get a set of IPs of devices running Syncthing, but that’s the way of a DHT…)

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [November 17, 2026, 3:02pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/22 "2026-11-17T15:02:19Z")

</div>

> [@calmh](#):
>
> (The DHT nodes themselves can of course be iterated, so you can trivially get a set of IPs of devices running Syncthing, but that’s the way of a DHT…)

Yup. That’s the reason why I recommended an opt-in approach for Syncthing to participate as a full DHT node instead of just acting as client.

> [@calmh](#):
>
> Can it though? I was under the impression the keys were `get` only, no search over the DHT protocol.

That would get us down to evil nodes.

Our biggest problem is that an attacker can simply operate a node, connect back to the client IP on 22000/tcp and extract the certificate. After that he only needs to connect the dots. This is even simpler for full nodes as they add themselves to the routing table of the DHT.

---

<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: [November 17, 2026, 4:29pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/23 "2026-11-17T16:29:33Z")

</div>

These issues are entirely orthogonal to what we actually store in the DHT though, since they are effectively just “an evil node can join the DHT, see other DHT nodes, scan them”. That said, I can scan port 22000 on the entire IPv4 internet in minutes today, so again I’m not certain that the attack is _relevant_ even if it’s possible.

It’s also annoying that this is literally the second most requested feature for a decade, and now here we are with a “do we event want this” style discussion. I’ll add a point of context to it: current global discovery does not scale and needs either rearchitecting or replacing. Imagine global discovery servers are shutting down 2026-12-31 23:59:59; let’s look at what’s a practical replacement that is more decentralised, as requested…

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [November 17, 2026, 4:38pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/24 "2026-11-17T16:38:27Z")

</div>

> [@calmh](#):
>
> do we even want this

100% in my case 😅

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [November 17, 2026, 9:03pm UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/25 "2026-11-17T21:03:15Z")

</div>

> [@calmh](#):
>
> These issues are entirely orthogonal to what we actually store in the DHT though, since they are effectively just “an evil node can join the DHT, see other DHT nodes, scan them”.

After reviewing all the variants discussed, I always come to the same conclusion: we cannot fully defend against malicious nodes. To do so would require us to introduce an out-of-band secret, which would completely break the way things work today. I think we should stop there, though, to avoid making the network susceptible to DoS attacks.

However, hashing the device ID is still an improvement, as it limits the leak to the storage layer instead of exposing it to all nodes involved in PUT/GET operations.

If you are a security conscious user, the alternative has always been, and will always be, to run your own infrastructure in terms of a discovery server or DHT.

( @calmh sorry for wasting your time. My verdict mostly turns back the clock to the initial proposal 🙁 )

---

<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: [November 24, 2026, 8:37am UTC](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365/26 "2026-11-24T08:37:16Z")

</div>

I rebooted this discussion with an actual design doc to discuss, which will form the basis for the documentation on the docs site.

> [@New peer-to-peer (DHT-based) discovery protocol](https://forum.syncthing.net/t/new-peer-to-peer-dht-based-discovery-protocol/27378):
>
> Background I’m proposing a peer-to-peer / DHT-based discovery method. With this I hope to accomplish reduced reliance on any central party, preventing tracking and control by any central party, and a higher level of scalability for the future. Goals & constraints In addition to the general goals in the background above, there are some specific technical constraints we need to fulfil in order for the mechanism to be maximally useful. We want to prevent forgery of discovery information; that is…

[Previous page](https://forum.syncthing.net/t/privacy-device-id-ip-tracking-via-discovery/27365.md?page=1)
