-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self hosted snapdrop is not discoverable between any devices in Docker swarm mode + Traeffik #542
Comments
After a lot of tinkering with Docker configuration, I finally got it working; however, now I have another issue that only happens in Chromium (I am using Ungoogled Chromium):
This only happens in Chromium. In general, Chromium cannot send, nor receive any files while Edge, iOS safari etc work fine. I have upgraded it to the latest version as well (v107.0.5304.88) |
What’s the advantage of using traefik in your case? About your errors: Do you manage to reproduce the error on snapdrop.net? Or have you even successfully fixed the errors? |
When I played around with snapdrop and traefik, I needed to make sure node was exposed on port 3000 and the urls in the docker/nginx/default.conf were changed from http://node:3000 in order to enable connection with the node server. I could push the config and send you send you a link to the working branch if you like, but apparently you got it working by yourself already 👍 |
@DominikTils |
@blipk you do not need to disable your firewall. Discoverability works by grouping peers with the same ip address. All devices in one roomTo test this you could add the following two line to server/index.js line 184: _setIP(request) {
// edit to put all peers into one room
this.ip = "0.0.0.0";
return;
// end edit Testing locallySimply visit TraefikA working branch for traefik can be found here: The specific commit: You can then call your local snapdrop instance by visiting |
@schlagmichdoch Would be great to have this exposed as an option |
@blipk I added a method to differentiate between private and public ip addresses on my instance. All devices that are on the same network as the server use private ip addresses, are therefore put into one room and can discover each other. |
I have deployed a snapdrop instance to a Docker swarm mode inside Raspberry PI. The issue that I have is that, even on the same machine (e.g opening Chrome tab and an incognito tab), the two sessions are not discoverable. When I use snapdrop.net, I can see the devices. Additionally, after 20-30 seconds, I keep seeing errors "WebSocket connection to X failed".
I am not sure what I am doing wrong. In swarm mode, I am using Traeffik for reverse proxy that routes http traffic to snapdrop server + issues automatic certificates. Are there some headers needed for this to work properly.
I tried the single room solution from #159 (comment) as well but that also did not work.
The text was updated successfully, but these errors were encountered: