szimek / sharedrop

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
https://www.sharedrop.io
MIT License
9.94k stars 725 forks source link

Network machines not discovered #115

Open elbarbudo opened 3 years ago

elbarbudo commented 3 years ago

Hello, I have a lot of Linux machines and 2 android phones. They are all in the same domestic network, either wired of by wifi. When I open the website sharedrop.io, I can see only one person "myself" on each device. From what I read about, it seems that WebRtc has problems, but I have no clue about.

Is there a log or other tool to check how the peer discovery is working (or failing in my case) ?

janmalec commented 3 years ago

Same here, I have tried this on different networks and the only way to make it work is by using the "Create a room" option.

szimek commented 3 years ago

Do you use IPv6? In this case every device will have a different public IP address and thus will join a different "default" room name.

If that's the case, the easiest way is to create a unique room name (you don't have to use the generated one, it can be any name) and just bookmark it on all devices.

MultiMatt502 commented 1 year ago

Giving this issue a bump, as I have a weird issue where just ONE of my many devices seems to not find, or be seen, on the same home WiFi network as the other devices. I even got out old test phones I had, and they connected just fine! Tried everything I can think of on the Pixel 6A in question, including running it in Safe Mode, to eliminate interference from any 3rd party apps. Nada.

Not running IPv6 at the house. Just using Nest WiFi (not the newest Pro version).

Here is a video, showing all the other devices connected just fine, but the 6A is an island unto itself...

https://photos.app.goo.gl/Fsa4yU8hnYGZAGeM7

I am going to create a unique room name, as suggested above, but wanted to give this post a bump to see if anyone had a potential "real" fix. Thanks!

augustebaum commented 6 months ago

I have the same problem, trying to share between a Linux machine and an iPhone, not using IPv6 AFAIK but I don't know how I would figure that out ^^'

alxlion commented 4 days ago

Most ipv6 addresses are on a /64 network, so for two different addresses 2a01:cb0c:1248:2c00:49c:a51e:9d68:64ae and 2a01:cb0c:1248:2c00:4053:134f:8b9f:a4e6 we can detect it's on the same network with first the 4 groups (2a01:cb0c:1248:2c00). So there is something to do to make it work with ipv6.