Skip to content
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

Brave: LAN discovery & announcement (mDNS, DNS-SD) #758

Closed
lidel opened this issue Sep 13, 2019 · 1 comment
Closed

Brave: LAN discovery & announcement (mDNS, DNS-SD) #758

lidel opened this issue Sep 13, 2019 · 1 comment
Labels
area/brave Issues related to Brave Browser area/chromium Issues related to Chromium-based browsers

Comments

@lidel
Copy link
Member

lidel commented Sep 13, 2019

Part of work on Embedded JS-IPFS in Brave #716 🦁 and epic about local discovery in browsers (ipfs/in-web-browsers#45)

Context

#754 introduced TCP transport and mDNS-based discovery of nodes in LAN via js-libp2p-mdns.

libp2p-mdns is pretty useful, as it aims to support both existing mDNS discovery service provided by every go-ipfs node (mdns:compat) and the new DNS Service Discovery (DNS-SD) described in libp2p/specs/discovery/mdns.md that aims to eventually replace it.

TL;DR
In other words, embedded js-ipfs running in Brave (#716) is able to discover go-ipfs on the same network and connect to it over regular TCP transport:

Known Issues

  • mdns discovery is passive at the moment
    • mdns:compat runs two services: one that queries, and one that responds to queries. Responder tries to listen on port 5353 and fails to start if something is already using the port.
    • chrome.sockets.udp does not support opening sockets with SO_REUSEADDR or SO_REUSEPORT (bugs.chromium.org#238819
    • this means it is very likely responding to mdns queries won't be enabled for most users, and DNS discovery is mostly passive (js-ipfs can discover other nodes and connect to them, but if we have two Brave nodes on the network those need to discover each other by other means)

Areas to explore

References

@lidel lidel added area/brave Issues related to Brave Browser area/chromium Issues related to Chromium-based browsers labels Sep 13, 2019
@lidel lidel changed the title Brave: LAN discovery (mDNS, DNS-SD, etc) Brave: LAN discovery & announcement (mDNS, DNS-SD) Sep 25, 2019
@lidel lidel self-assigned this Sep 25, 2019
@lidel lidel removed their assignment Dec 12, 2019
@lidel
Copy link
Member Author

lidel commented Jan 20, 2021

#967 (comment)

@lidel lidel closed this as completed Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/brave Issues related to Brave Browser area/chromium Issues related to Chromium-based browsers
Projects
None yet
Development

No branches or pull requests

1 participant