bestlibre / hassio-addons

173 stars 109 forks source link

Syncthing: Use Host Network to prevent issues with local discovery #126

Open cdrfun opened 5 years ago

cdrfun commented 5 years ago

Hi there, when using synthing all my LAN clients connect via relay or external IP address. I also got a recurring error in my log stating the syncthing instance connected to itself. This seemed quite odd, so I did a little research: The issue has already been discussed here: https://superuser.com/questions/1364353/issue-with-local-discovery-of-devices-on-dockerized-syncthing/1416192

I tested this solution at using the host network prevents those connection issues.

einheitsnamezahl123 commented 4 years ago

@cdrfun could you set a pull request? I agree that the current version makes local discovery impossible.

Where did you set the host network option?

cdrfun commented 4 years ago

@einheitsnamezahl123 I've copied the container with portainer and changed the network as shown in the screenshot. I can't remember doing anything else. grafik

fabaff commented 4 years ago

I guess that the add-on would require host_network.