webrtc-cli icon indicating copy to clipboard operation
webrtc-cli copied to clipboard

Can mDNS be opted out?

Open sipsorcery opened this issue 4 years ago • 5 comments

Is there anyway to disable the use of mDNS? My virtual machine doesn't support it.

$ ./webrtc-cli --offer --debug                                                                                                     
Creating WebRTC peer...                                                                                                                                         
Error: mDNS: failed to join multicast group 

sipsorcery avatar Jul 13 '20 14:07 sipsorcery

Hi, sorry for late reply.

It seems it will be possible if we update our pion version. What virtual machine did you use? I'd like to setup my own to reproduce the issue & develop a fix.

gavv avatar Dec 20 '20 07:12 gavv

I can't find the vm i was using when I posted the original issue. I re-tested on my Ubuntu 20.05 physical machine and Windows WSL 18.04 image and both were able to generate an offer. Neither generated an offer with any mDNS ICE candidates so I guess I was using a different vm somewhere or my mDNS config changed for some reason...

I also attempted a check with the browser tool at https://gavv.github.io/webrtc-cli/ but it seems to be broken? It's not producing an SDP offer for me on Windows 10 with Chrome Version 87.0.4280.88 (Official Build) (64-bit).

sipsorcery avatar Dec 20 '20 13:12 sipsorcery

I happened across the original vm that I encountered the original issue on:

aaron@pcdodo:~/src/webrtc-cli$ ./webrtc-cli --offer
Creating WebRTC peer...
Error: mDNS: failed to join multicast group
aaron@pcdodo:~/src/webrtc-cli$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

sipsorcery avatar Dec 28 '20 22:12 sipsorcery

Hi, still not being able to reproduce this. Tried ubuntu 20.04 in docker and virtualbox with different network adapter modes (NAT, bridged, etc) - no errors. Probably you use other VM, or some specific configuration.

Anyway, I can just add an option to disable mDNS and hope that it will help. I will be possible after #9.

gavv avatar Feb 21 '21 11:02 gavv

I also attempted a check with the browser tool at https://gavv.github.io/webrtc-cli/ but it seems to be broken? It's not producing an SDP offer for me on Windows 10 with Chrome Version 87.0.4280.88 (Official Build) (64-bit).

Demo page is fixed (see #8).

gavv avatar Feb 21 '21 12:02 gavv