4 ms·
> 100% peer-to-peer. Is this even possible with WebRTC? How do clients initially learn about each other's IP addresses and ports? There seems to be some logic
by lxgr 4y ago
> 100% peer-to-peer.
Is this even possible with WebRTC? How do clients initially learn about each other's IP addresses and ports?
There seems to be some logic to facilitate that in the server code: https://github.com/vasanthv/talk/blob/master/server.js https://github.com/vasanthv/talk/blob/master/server.js
- clemensley 4y agoI agree, this is super cool but it's not 100% peer to peer as WebRTC requires a central server to establish the connection as far as I know.
- koolala 4y agoIs LAN P2P? If yes, WebRTC is 100% P2P over LAN is it not?
- lucb1e 4y agoI still think the clients need a coordination server to discover each other (won't use multicast/broadcast traffic). You could probably make a browser that does this, but if they already do then I am not aware of it.
- palata 4y agoIt does not require a central server, signaling is left as an implementation detail. Implement a p2p signaling system, and that will be p2p.
- palata 4y agoSignaling is up to the implementation. You can use carrier pigeons if you want. Would that qualify as p2p? :)
- lxgr 4y agoPigeon-to-pigeon connection establishment, I like it :) I've never considered using WebRTC without STUN or TURN, but apparently it's quite possible, enabling LAN-only usage: https://stackoverflow.com/questions/30742431/webrtc-on-isolated-lan-without-ice-stun-turn-server https://stackoverflow.com/questions/30742431/webrtc-on-isola...