snapdrop icon indicating copy to clipboard operation
snapdrop copied to clipboard

Selfhosted not working: Docker on Pi 4, Portainer. Not visible to other devices in the network

Open jnanadarshan opened this issue 4 years ago • 10 comments

I installed using Linuxserver.io image from docker hub via Portainer GUI. Used only given parameters like config, PUID, PGID and TZ. The issue is when I open my Pi 4 IP HTTP://xx.xx.xx.xx:8851 or https://xx.xx.xx.xx:8853 on the same device with the same or different browsers I see the devices. If I open on any other device I'm not able to see other devices. (Mac, Windows, Android, iOS tried everything).

The website snapdrop.net works fine on all devices so I'm guessing no changes necessary on Network Config or device config.

Do I need to change something on Conf files to make this work on self-hosted instances? Am I missing some things?

jnanadarshan avatar Sep 25 '21 15:09 jnanadarshan

Same issue for me. I also tried using the "original" version of this repo link but seems not to work either.

peterlang-p avatar Oct 01 '21 10:10 peterlang-p

Same here. Deployed locally, no errors, but devices cannot see each other.

bennyzen avatar Oct 03 '21 11:10 bennyzen

Installed via supplied Docker-compose.yaml and also cannot see any other devices. Also see a connection timeout banner every 5 seconds

geminos-dev avatar Oct 20 '21 01:10 geminos-dev

Same here. I have just tried and it wont discover devices on the same network.

kliarist avatar Nov 16 '21 21:11 kliarist

I don't know how or if this helps, but I got it working for me by routing snapdrop through traefik. After accessing it via my url with ssl, both devices were found instantly.

In before I was trying to access my snapdrop instance via the ip:port

peterlang-p avatar Nov 19 '21 09:11 peterlang-p

I think it's because of the different IPs, when you connect from your internal network. Snapdrop puts clients with the same source ip (usually the WAN IP of your router) in one "Share-Room" Check this Issue out #159 and try to apply the "sed" commands to your container. then it should work.

r4tze avatar Nov 26 '21 09:11 r4tze

This would be fixed if #558 was merged.

schlagmichdoch avatar Jan 10 '23 21:01 schlagmichdoch

Same here. I tried sed command but i get this error:

sed: server/index.js: No such file or directory

aboodvan avatar Feb 03 '23 14:02 aboodvan

@aboodvan Have you tried the pull request #558 as well?

schlagmichdoch avatar Feb 03 '23 15:02 schlagmichdoch

Thank you @schlagmichdoch sed -i 's/peer.ip/0/g' server/index.js fixed it for me

I'm new to linux and I just learned that "ls -R index.js" wouldn't search inside directories.

I used "find -name index.js" and I fount out that www/ should be included as the file was in that directory.

aboodvan avatar Feb 03 '23 19:02 aboodvan