mDNS Support for WebRTC at Google Chrome M74

2020-07-17 15:52发布

问题:

Google Chrome scheduled for M74 release that the mDNS support for local ICE candidates will be involved in the browser to increase privacy. This feature is controlled by the feature flag -enable-webrtc-hide-local-ips-with-mdns ;

I am trying to test the effect of mDNS support for WebRTC users on Google Chrome. I am testing with my custom WebRTC App and execute below test steps before making call;

1- WebRTC clients are logged in with using identical mDNS broadcast domains,

2- mDNS in Google Chrome Canary is enabled via -enable-webrtc-hide-local-ips-with-mdns flag on both party,

After the call has been generated, I saw that WebRTC agents are replaced their private IP's with anonymous local IP's which are followed by ".local";

Also I detect that the call signaling is generated and the media stream is performed successfully, but the ICE candidates are chosen from relay candidates(used TURN Server), not host candidates;

I think the parties cannot resolve their anonymous IP's and select to establish communication on existing TURN Server (use relay candidates).

I am sure that the clients are under the same subnet, but why they cannot resolve each other's anonymous IPs? I know that the nodes are broadcasted their anonymous IPs via 5353 port of mDNS and I expected that they will resolve the IPs easily. Is there anything that I missed during testing?

Your assistance would be highly appreciated. Thanks a lot