w3c / webtransport

WebTransport is a web API for flexible data transport
https://w3c.github.io/webtransport/
Other
838 stars 51 forks source link

Working with servers behind a NAT or on a local network (aka "p2p") #590

Open pthatcher opened 7 months ago

pthatcher commented 7 months ago

I've having an increasing number of people asking me for a "p2p" solution for WebTransport. As I've investigated why, and I have found that some people want to run a client/server pair on a common network (where using mDNS for discovery, like WebRTC does, could make sense), and others are running a server behind a NAT, and the easiest solution for them is to use p2p tech like ICE, but other NAT traversal technique may work (for example NAT-PMP or UPnP).

Meanwhile, there is a lot of discussion in the IETF about NAT traversal and p2p QUIC, even without ICE.

What should our approach be for WebTransport on these fronts that are "p2p"?

jan-ivar commented 7 months ago

Meeting:

jan-ivar commented 7 months ago

I wonder are mDNS addresses extracted from WebRTC usable in other web platform APIs already? If user agents support this already then could this be polyfilled?