This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The port property of the RTCIceCandidateStats dictionary specifies the network port used by the candidate.
An integer value indicating the network port used by the RTCIceCandidate described by this RTCIceCandidateStats object. Corresponds to RTCIceCandidate.port.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
port |
80 | 80 | 7227 | 67 | 12.1 | 80 | 7927 | 57 | 12.2 | 13.0 | 80 | 12.2 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidateStats/port