Hacker News new | ask | show | jobs
by sjg 1908 days ago
Tried to call a few times and got the busy signal. Just a thought but I would maybe not log the number in the console as it might be leaking your actual phone number to the wider world. Hope it's a burner number.
1 comments

Your phone number is not getting leaked by an WebRTC app. Definitely not. Your IP address might, in case a true P2P connection is established.
Not even that - WebRTC obfuscates your IP via intermediary servers.
TURN/STUN servers are not always used, and more often than not only as a fallback if a direct link is not established.
Small addition to avoid confusion: the purpose of STUN is kind of the opposite of TURN in this context. TURN will tunnel the traffic through the server and the clients don't need to know each others real IP addresses. STUN on the other hand is used in order for the clients to learn their real IPs despite NAT and be able to establish a direct connection.