dmotz / trystero

✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
https://oxism.com/trystero
MIT License
1.33k stars 92 forks source link

Can all peers see each others IP addresses? #54

Closed matthewjumpsoffbuildings closed 12 months ago

matthewjumpsoffbuildings commented 1 year ago

Just wondering how secure/anonymous trystero is.

If I create a room and a number of users join, can they all see the IP addresses of the other people? And if so how easy is that to access?

jeremyckahn commented 1 year ago

AFAIK peer IP addresses are exposed to others via SDP strings. These strings are obtained from the pairing mechanism (WebTorrent/IPFS/Firebase) and used to locate and connect peers. I don't know that a WebRTC connection can be established without some sort of SDP string exchange.

dmotz commented 12 months ago

Yes given that they're p2p connections a savvier user could use some network monitoring tools to view IP addresses but it's more complicated than simply opening up the browser dev inspector.