Currently trying to use WebRTC from Flutter. I jus...
# present-company
g
Currently trying to use WebRTC from Flutter. I just want a way to find my external IP address and port, and to share data through it. Seems like a simple requirement. I am utterly astounded at the complexity of WebRTC. I’ve just never see anything quite like it. The Flutter plugin just flat doesn’t work for me, and there is no debugging information available to let me know why. The plugin uses an opaque C library, and I’m no C hacker. I’m down to using a headless browser, which I’m pretty sure I will get working. But holy moley. This: http://webrtcforthecurious.com is about the friendliest introduction I can find. Tragic, because ad hoc peer-to-peer connections should be a large part of the Future of Computing. File under: hopefully not the future of computing.
j
Blame the network infrastructure for how much this kind of thing sucks. We pushed for universal IPv6 in the 90s, but we’re still doing NAT in 2024…
i
Yeah, I recall this being a huge pain in the butt for folks at Ink & Switch (before I joined) trying to do experiments with serverless p2p local-first collab. Eg: doing hairpin NAT so that devices could discover each other (or something). Really disappointing.
💯 1
m
I'm pretty sure you have tried this already but just in case... Try this link: https://github.com/search?q=webrtc+language%3ADart+&type=repositories . Also it's worth checking the long tail because this is where the true gems can be found.