# How does syncthing choose a relay?

**URL:** https://forum.syncthing.net/t/how-does-syncthing-choose-a-relay/16129
**Category:** Support
**Created:** [January 4, 2021, 11:27am UTC](https://forum.syncthing.net/t/how-does-syncthing-choose-a-relay/16129 "2021-01-04T11:27:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [January 4, 2021, 11:54am UTC](https://forum.syncthing.net/t/how-does-syncthing-choose-a-relay/16129/2 "2021-01-04T11:54:13Z")

</div>

It checks the latency of relays and puts them in 50ms buckets, trying the lowest-latency ones first. Which relay is chosen within those buckets is random.

---

_[View the full topic](https://forum.syncthing.net/t/how-does-syncthing-choose-a-relay/16129)._
