How do I advertise addresses for clients to connect to

I am running syncthing inside a docker container with a bridged network. Is there any way for me to specify listen addresses for devices to connect? For example, I want my container to tell other devices that it is reachable at syncthing.domain.tld:22000.

Currently, I have to do this manually for each device I connect it to, but I was just wondering if this could be done using the Web GUI in the container.

This is all so that I can access it as TCP LAN instead of relay.

You can change the listen address in the config: Syncthing Configuration — Syncthing documentation

You probably want to change from defaultto tcp://0.0.0.0:22000, quic://0.0.0.0:22000, dynamic+https://relays.syncthing.net/endpointwith whatever port you need.

A more efficient way is to just leave default there and set the listen addresses to default, tcp://syncthing.domain.tld:22000, quic://syncthing.domain.tld:22000. Syncthing will announce the domain name(s).

2 Likes