Too many network interfaces

connectivity

This can significantly increase ICE connectivity checks across available network interfaces. This may slow down connection setup, generate unnecessary network traffic and potentially route the connection to the wrong network interface.

Description

WebRTC gathers candidates from every single network interface available on the device (Wifi, Ethernet, VPN, Virtual machine, mobile network, ...).

Having too many network interfaces multiply the number of candidates gathered and consequently, the number of connectivity checks done.

On some low powered device, this can block or crash the network adapter making the connection impossible.

What do we do here?

We count the number of network interfaces found and if greater than 4, we mark an observation.