gavv / webrtc-cli

WebRTC command-line peer.
MIT License
225 stars 24 forks source link

Can mDNS be opted out? #6

Open sipsorcery opened 4 years ago

sipsorcery commented 4 years ago

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 
gavv commented 3 years ago

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.

sipsorcery commented 3 years ago

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 commented 3 years ago

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
gavv commented 3 years ago

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 commented 3 years ago

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).