Skip to content

A Relay Pool api server that filters the data from relays.syncthing.net

Notifications You must be signed in to change notification settings

hopla/RelayDiscovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RelayDiscovery

A Relay Pool api server that filters the data from relays.syncthing.net

Background

I have a network of clients that often are behind different firewalls, and I have been having perfomance problems that I, for lack of another explanation, blame on the firewall. The client happily advertices itself with a bunch of addresses that will never work. Also clients on the outside sometimes connect to relays that the firewalled client will never reach.

After a while they usually find each other, but it takes time and transfer speed has been low.

Solution

This is a simple webapi that on each request to /relays fetches the data from relays.syncthing.net, filters out those with Port = 443 (and atm also those that are geographically local to me), sorts them by transfer speed (don't know it this makes any difference, but anyway) and returns the result

Then I select "dynamic+<webapi address>" as Listen Address in my syncthing clients.

I am hosting an instance of this at https://relaydiscovery.azurewebsites.net/relays for the time being.

About

A Relay Pool api server that filters the data from relays.syncthing.net

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%