element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.04k stars 1.96k forks source link

Can't p2p 1:1 call if turnserver is disabled #17535

Closed Latrolage closed 3 years ago

Latrolage commented 3 years ago

Not sure if this is intended or not, but with the

Allow Peer-to-Peer for 1:1 calls (if you enable this, the other party might be able to see your IP address)

option enabled, it still requires the server's turnserver to be enabled. I thought that if both parties have this enabled, it would be a p2p e2ee call?

Element version: 1.7.29 olm version: 3.2.3

t3chguy commented 3 years ago

Do you have a functioning STUN server, e.g one from your HS or image

Without STUN your client has no way of knowing its external IP address to be able to negotiate a p2p connection. In this situation only a p2p connection on your local network should still work.


turn.matrix.org is a TURN server for matrix.org users (requires auth) but a STUN server for all (TURN is a superset of STUN)

Latrolage commented 3 years ago

Not quite sure if i'm understanding how turn and stun work. I installed and setup coturn on a ubuntu based server. How does stun installation/configuration work?

t3chguy commented 3 years ago

https://github.com/matrix-org/synapse/blob/develop/docs/turn-howto.md