Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by laserfly on Tuesday September 06, 2022 @02:04AM
(#32733471)
Thanks for the post, nice to see new apps. In my experience with webRTC, a lot of the time the p2p connection does not get fully achieved, and the connection falls back to the server. Are you saying that the chat room will not run unless it is true p2p? If not, it would be good if the app shows the type of connection that is being used (p2p or via server).
[ Parent
| on HN ]
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by jckahn on Tuesday September 06, 2022 @06:15PM
(#32743930)
Thanks for the feedback! Chitchatter uses https://www.metered.ca/tools/openrelay/ for relaying communication when P2P connections can't be established. So, chatting should "just work" for users right now. I don't know if the current connection type (P2P or relayed) can be determined by JavaScript. If not, it seems that allowing the user to disable relaying servers might be the safest option (at the expense of the app not actually working).
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by jckahn on Wednesday September 07, 2022 @10:03AM
(#32750790)
Just to follow up here, it turns out that there may be a way to detect if a peer connection is direct or relayed: https://stackoverflow.com/a/53138581
I'll try to surface this information to the user!
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by laserfly on Sunday September 11, 2022 @08:30AM
(#32799089)
nice :)
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by ackbar03 on Tuesday September 06, 2022 @02:21AM
(#32733608)
I was curious about this too. In my experience the real obstacle behind true p2p is everyone is behind a router or firewall these days with shared ip. Most also prevent hole punching through port randomization.
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by jlokier on Tuesday September 06, 2022 @05:55AM
(#32734975)
Tailscale comes up here a lot recently, and their article on how they do p2p over routers and firewalls (NAT traversal) is superb: https://tailscale.com/blog/how-nat-traversal-works/
Unfortunately it doesn't include statistics on how successful the strategies are in practice.
Re:Show HN: Chitchatter – P2P chat app that is serverless, d...
by synctext on Tuesday September 06, 2022 @08:33AM
(#32736242)
Yes, not many people measured NAT boxes at scale. "UDP NAT and Firewall Puncturing in the Wild" [1] this scientific article from our lab might be helpful.
We also have UDP puncturing also working in a 3G or wifi setting with Android-to-Android mode, see "Kotlin-IPv8" link in here: https://github.com/Tribler/trustchain-superapp