schlagmichdoch / PairDrop

PairDrop: Transfer Files Cross-Platform. No Setup, No Signup.
https://pairdrop.net
GNU General Public License v3.0
4.36k stars 245 forks source link

[Bug] LS Docker Container on UnRAID = No Devices Discovered #333

Open door665 opened 1 week ago

door665 commented 1 week ago

Describe the bug I've deployed linuxserver docker container on my unRAID server as found in the community apps. I'm using Cloudflare ZeroTrust tunnel, Pairdrop page opens up fine but it can't find any devices (same network). But if I create a public room it can then see the device.

To Reproduce Steps to reproduce the behavior:

  1. Deploy docker container in unraid
  2. open the website

Expected behavior Expectation is for devices that have opened the pairdrop instance webpage to be discoverable in the same network.

Desktop (please complete the following information):

Bug occurs on official PairDrop instance https://pairdrop.net/ No Version: v1.10.10

Bug occurs on self-hosted PairDrop instance Yes

Self-Hosted Setup Proxy: Cloudflare ZeroTrust tunnel Deployment: docker

schlagmichdoch commented 15 hours ago

But if I create a public room it can then see the device.

That means, that your devices connect to the devices correctly and only the auto-discovery feature is not configured properly. If you use cloudflare zerotrust tunnels you might need to setup forwarding of client IPs in Cloudflare so that PairDrop receives the real client IPs in the cf-connecting-ip header. Also, if you're devices connect to your server via IPv6 you might want to checkout IPV6_LOCALIZE env var in the docs.

See documentation how to debug the IPs that PairDrop receives for clients here: https://github.com/schlagmichdoch/PairDrop/blob/master/docs/host-your-own.md#debug-mode