

quic://0.0.0.0:22000) Syntax is the same as for TCP, also quic4 and quic6 can be used. TCP IPv6 address and port (tcp6://:22000) This results in Syncthing listening on the specified address and port, IPv6 only. TCP IPv6 wildcard and port (tcp6://:22000, tcp6://:22000) These are equivalent and will result in Syncthing listening on all interfaces via IPv6 only. TCP IPv4 address and port (tcp4://192.0.2.1:22000) This results in Syncthing listening on the specified address and port, IPv4 only. TCP IPv4 wildcard and port (tcp4://0.0.0.0:22000, tcp4://:22000) These are equivalent and will result in Syncthing listening on all interfaces via IPv4 only. TCP wildcard and port (tcp://0.0.0.0:22000, tcp://:22000) These are equivalent and will result in Syncthing listening on all interfaces, IPv4 and IPv6, on the specified port. If you want Syncthing to listen on multiple addresses, you can either: add multiple tags in the configuration file or enter several addresses separated by commas in the GUI.ĭefault listen addresses (default) This is equivalent to tcp://0.0.0.0:22000, quic://0.0.0.0:22000 and dynamic+. The following address types are accepted in sync protocol listen addresses. Syncthing Configuration - Syncthing v1 documentation In the absence of port forwarding, Relaying may work well enough to get devices connected and synced, but will perform poorly in comparison to a direct connection. Therefore if you set up port forwards for one device, other devices will be able to connect to it even when they are behind a NAT network or firewall. 22000/TCP).Ĭommunication in Syncthing works both ways. The external forwarded ports and the internal destination ports have to be the same (e.g. If this is not possible or desirable, you should set up a port forwarding for ports 22000/TCP and 22000/UDP (or whichever port is set in the Sync Protocol Listen Address setting). If it succeeds you will see a message in the console saying:Ĭreated UPnP port mapping for external port XXXXX on UPnP device YYYYY. If you have a NAT router which supports UPnP, the easiest way to get a working port forward is to make sure UPnP setting is enabled on both Syncthing and the router – Syncthing will try to handle the rest. Is that correct?įirewall Setup - Syncthing v1 documentation Port Forwards Where do i have to start and where i have to enter the ports and listen addresses? - My current understanding is that i have to (1) allow port forwards in the routers, (2) to create listeners in the Syncthing UI/configuration and (3) i might have to allow Syncthing to listen for the ports in the firewalls.Is port forwarding the proper approach to achieve my goals? - i know i might have to configure DNS and maybe even a relay server in addition to port forwards at one point.
