OpenVidu / openvidu

OpenVidu Platform main repository

Home Page:https://openvidu.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why openvidu is sharing ice candidate of every users information to people who are viewing particularly only one cam

josephmiller2000 opened this issue · comments

Describe the bug
Openvidu is sharing ice candidate of every users information to people who are viewing particularly only one cam

Expected behavior
It should send the other events rather than sending everyone's information to everyone who joined the video broadcast in the chat room, this will cause too much load on the server and application

Wrong current behavior
I have a public chat room, where users broadcast their cams in a room, the cams will be visible to viewer who view any broadcasters cam. For example if 20 people are broadcasting in cam. And when we open(view) only one users cam, im getting everyone's ice candidate information much more in the socket section.

OpenVidu tutorial where to replicate the error

  1. Im, using docker for my production, i did follow your documentation to install the setup " https://docs.openvidu.io/en/stable/deployment/ce/on-premises/ "

OpenVidu deployment info
Docker ( ubuntu 21.04 ) version.

Screenshots
Snap_Shot_03279

Other Info

OPENVIDU_WEBHOOK_EVENTS=[sessionCreated,sessionDestroyed,participantJoined,participantLeft]

There is no leak of clients IPs. You must understand how WebRTC and ICE protocol works.
Final users won't receive the IP of other users when using OpenVidu. That's one of the consequences of using a SFU. The ICE candidates sent and receive by the clients will contain their own IP (of all of its network interfaces, that's how WebRTC works) and you will also see the IP of your OpenVidu deployment (the media server is the other endpoint of the WebRTC communication). The 192.168.8.104 IP you pointed in the attached image is one of the IPs of the device running the browser, probably a local one (that's a local type ICE candidate).
So no, unless you are using P2P connections without a media server, your clients won't receive the public IPs of other clients.
If you want further information, the web is full of it: https://developer.mozilla.org/es/docs/Web/API/WebRTC_API/Protocols