Way to avoid Windows Firewall prompt?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Way to avoid Windows Firewall prompt?

Postby dmcgloin » Sat Sep 12, 2020 4:09 pm

When I use the cefclient.exe v85, a Windows Firewall prompt appears when I load a page that uses WebRTC.

FirewallScreenshot.PNG
FirewallScreenshot.PNG (30.78 KiB) Viewed 4189 times

It appears that the firewall prompt is likely caused by CEF trying to listen on local port 5353 mDNS. This prompt only happens on first run whether you allow or cancel.

In my scenario, I cannot disable the use of WebRTC in the web page, so I'm looking for some CEF switch to disable WebRTC so the prompt won't occur. I expect that this would cause WebRTC to fail in the page; but this is not an actual problem.

I've discovered that explicitly creating a firewall rule at installation can make this problem go away. But this is undesirable.

I've seen a list of switches here: https://peter.sh/experiments/chromium-c ... -switches/ . But none seem to work.

Does anyone know any other way I can avoid this Windows Firewall prompt?

Thanks in advance.
dmcgloin
Newbie
 
Posts: 2
Joined: Fri Sep 04, 2020 1:29 pm

Re: Way to avoid Windows Firewall prompt?

Postby amaitland » Sat Sep 12, 2020 5:48 pm

You could try just disabling mDNS as per https://groups.google.com/g/discuss-web ... VwleLiBwAJ
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Way to avoid Windows Firewall prompt?

Postby dmcgloin » Sat Sep 12, 2020 11:00 pm

Thanks again, @amaitland.

Good news. It looks like this works:

Code: Select all
settings.CefCommandLineArgs.Add("disable-features", "WebRtcHideLocalIpsWithMdns");


Going to test more to ensure this works consistently.
dmcgloin
Newbie
 
Posts: 2
Joined: Fri Sep 04, 2020 1:29 pm

Re: Way to avoid Windows Firewall prompt?

Postby amaitland » Fri Nov 27, 2020 7:49 pm

As per https://bugs.chromium.org/p/chromium/issues/detail?id=859359#c29 the suggestion is that other features in Chromium use mDNS. So just disabling the WebRTC specific use of mDNS may not be sufficient.

In issue is tagged as being OS Linux, likely other features on Windows would use mDNS as well.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 43 guests