few-analyst-46
07/10/2025, 3:58 AMtall-airline-16756
07/10/2025, 3:58 AMtall-airline-16756
07/10/2025, 3:59 AMgetConnectedAddress()
method, and the Flutter SDK has similar functionality. These methods analyze WebRTC stats to find and return the IP and port of the remote peer.
• Server-side: The LiveKit server automatically collects the participant's IP address during the connection handshake, using HTTP headers (like CF-Connecting-IP
, X-Forwarded-For
, or the remote address if these are not set).
Be aware that the IP you retrieve may be a NAT, proxy, or CDN IP, not necessarily the participant's actual device IP, and should be accessed only when necessary for privacy reasons.
The exact steps depend on your SDK and use case. If you need sample code or details for a specific language or environment, let me know which SDK or integration you're working with.
Sources: src/room/PCTransport.ts | lib/src/core/engine.dart | pkg/rtc/room.gofew-analyst-46
07/10/2025, 4:01 AMtall-airline-16756
07/10/2025, 4:01 AM