holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

[Feature] discovery on lan wihtout access to internet #91

Open freddi301 opened 2 years ago

zacharygriffee commented 1 year ago

I would like to see this, and in fact, expected it to work like this. I mentioned this at dht-relay https://github.com/holepunchto/hyperswarm-dht-relay/issues/15#issue-1537472528 but didn't think to bring it up here. IT would be really nice to have a private network. Or, one person on the network has connection to internet, and the other doesn't, so the connection without can access the hyperswarm through that computer that does.

lanmower commented 8 months ago

I'd be very keen on seeing this work, could we use multicast allow detection across LAN here to get the bootstrap done between lan hosts? Would that complete the circle for the holepunch process to work?

freddi301 commented 8 months ago

To cover my case i wrote some naive code: