SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
411 stars 30 forks source link

Check Firewall Issue #84

Open FA-Bubba opened 4 years ago

FA-Bubba commented 4 years ago

Running version 2.9.0

After rebooting my Router, then clicking "Reset Settings", DAS only finds 16 of 17 Devices/Groups. I tried Scan Again... but the missing Device was not found.

I started two Groups and One Device that is not in a Group, after briefly turning Green, all turned Pink, and displayed "Check Firewall". Nothing had been changed in the Firewall, so what would I need to check?

Downloaded & installed v3.0 and had same result.

SamDel commented 4 years ago

When a device turns pink, "Check Firewall", it means:

Things you can try:

FA-Bubba commented 3 years ago

Thanks, The Mesh Controller had been updated. DAS worked OK after I rolled the Controller back to the previous version. (NOT a trivial task).

The Ubuquiti/UniFi support group were unable to offer any suggestions of figuring out what caused the issue, and even said it might be an error in the update, but they were just guessing.

Evidently, something in the Mesh (UniFi) Controller software didn't like the DAS Device connections.

I welcome any suggestions on how to troubleshoot or otherwise determine what was happening with the new Controller software; until then I will not be doing any more Controller updates.

SamDel commented 3 years ago

Is this the user guide of your device: https://dl.ubnt.com/guides/UniFi/UniFi_Controller_V5_UG.pdf?

Maybe they changed some (predefined) firewall rules, or settings, in the update. You can compare the firewall rules & settings before and after the update (page 33 in the manual).

FA-Bubba commented 3 years ago

WOW! Thank you for finding this!!!

This is a User Guide for my Mesh Controller, and much more detailed than the one I have...

I will document the current Firewall rules & settings, and save as a reference for the next update in case DAS Devices get bumped-out again.

Thanks!

FA-Bubba commented 3 years ago

Another Firewall "experience"...

I upgraded to v3.0, and my Speaker Groups changed to the amber color, showing the message "Check Firewall". I then clicked on individual speakers, and they all worked. While casting to the individual speakers, duplicate Device Boxes appeared for all of the Speaker Groups. Since my individual speakers have fixed IP addresses, and the Groups seem to have arbitrary addresses assigned by DAS, I unchecked "Automatically start last used devices and groups at startup", unloaded DAS, and restarted.

This time DAS was unable to cast to any speaker or device; all Device Boxes were Amber, but there were no 'Check Firewall' messages/labels.

I uninstalled v3.0 & reinstalled v2.9.0, with "Automatically start last used devices and groups at startup" NOT checked, and all is working OK now. (Sorry, I failed to save any Log files, though).

OptionsScreen-2020-07-35

SamDel commented 3 years ago

While casting to the individual speakers, duplicate Device Boxes appeared for all of the Speaker Groups.

A new group-box is only added when a discovery message is received ("Discovered device: ..." in the log) from the group with a different ID (logged on the same line). I don't know what happened, maybe the groups decided to change their id's, or something odd on the network, or ... DAS doesn't assign IP addresses to groups, the devices in a group elect a leader themselves, the IP address of the leader is broadcasted.

The only thing changed in 3.0 is the 'Minimize to systray when closing' option. I don't think that has to do with it.

... but there were no 'Check Firewall' messages/labels.

That's not normal behaviour, I don't know what happened there.

Was the Mesh controller updated, or not, when this happened?

FA-Bubba commented 3 years ago

This was over a week after I discovered the Mesh Controller issue, and rolled it back to the previous version.

Everything has been working OK since I uninstalled DAS 3.0 and reinstalled DAV 2.9.0

I somehow think the issue may be related to the "Automatically start last used devices and groups at startup, which I am not using for now.

I will continue to monitor and post any new developments.

FA-Bubba commented 2 years ago

After over 1 year of stability, DAS started showing "Check Firewall" on multiple devices... I checked Windows Firewall, and saw the following:

CheckFirewall

Here's the Windows Update History:....

Win10Updates

But I am still getting Check Firewall on some devices... What else can I try? ...and how can I prevent Windows from doing this again?

SamDel commented 2 years ago

When you start a stream:

  1. DAS sends a message to the device to load the desktop stream.
  2. The device makes a connection to DAS to load the stream.

When step 2 takes longer then 15 seconds DAS shows "Check Firewall".

In your case it looks like the firewall is configured right, so I think there's another issue. Doesn't the stream load at all, or does it load when you wait long enough?

FA-Bubba commented 2 years ago

What I first noticed was all Devices were dropping off line, and making that audible multi-tone attempted connection sound, but no devices would play....

When the display (on Oct 2) ALL devices were showing "Check Firewall". At the time, I believed the Firewall was properly configured, so I tried:..

So I checked the Firewall, and saw the first image I posted above (TWO entries for DAS, one with Private checked & Public unchecked; and one with Private unchecked and Public checked. I tried to delete either one of the entries, but neither would delete, so I eventually got ALL of the DAS Firewall checkboxes checked, and then DAS started working OK. and has worked OK for the past two days...

Since I didn't have any screenShots of the Firewall setup prior to this, I don't know which boxes were checked before the Oct 2 Windows update, but whatever was checked, it was OK, because DAS has not had a "Check Firewall" issue here for over a year.

What is disturbing to me is how a Windows Update could disrupt the Firewall Settings.... In any event, I now know to check the Firewall settings if/when this happens again.

Will DAS display "Check Firewall" for any other reasons?

THANKS!

FA-Bubba commented 2 years ago

PS: When this first occurred on Oct 2, DAS was set to play to two speaker Groups, for a total of 9 speakers from 1 PC with DAS, and to 2 more Speakers on a 2nd PC with DAS...

When ALL Devices dropped off line, during one of the Resets, I selected individual Speakers, instead of Groups, but that didn't help.

Now with the Firewall changes I made, I am back to casting via Speaker Groups, and it's been OK for the past 2 days.

SamDel commented 2 years ago

Can it be this happened again:

I have discovered that Windows updates routinely change the Local Network from Private to PUBLIC, and this kills a number of things, including DAS

?

If so, maybe I have to implement this:

SO, a "Check Firewall" message/notation in DAS might be better worded as "Check Firewall & Wi-Fi Privacy Status"

FA-Bubba commented 2 years ago

YES!... GREAT CATCH... THANK YOU & My apologies for forgetting to check that.

Odd that the same update did not change that setting on my other 3 PCs.

PS: Now that I have enabled DAS through the Firewall as both PRIVATE & PUBLIC, this MIGHT not happen again...

SamDel commented 2 years ago

😃 Nice! The fix of the status message ("Check Firewall & Wi-Fi Privacy Status") is in release version 3.8.

FA-Bubba commented 2 years ago

Windows continues to change my Private network to Public, even though I reset it to Private. This seems to happen every time the PC is rebooted. Researching this showed countless others have encountered this issue going back 6 or more years.... I found this Registry Edit that seems to prevent additional changes, and implemented it last night:

https://superuser.com/questions/1160421/how-do-i-force-windows-10-to-see-a-network-as-private

I will continue to monitor, and will post the results in about 2 weeks. IF this fix resolves the issue, you may want to post it as part of your guide.

FA-Bubba commented 2 years ago

Since using the Registry Edit from my previous post, Windows has NOT changed my network status...

However, here's an interesting twist: DeviceBox-2

ALL of my devices are on the same Wi-Fi network, as is my PC that runs DAS. Note in the screenshot, I am trying to Cast to the 1st Floor Group (which has 6 Devices), plus 3 individual speakers that are on the 2nd Floor. ONE of them is displaying the "Check Firewall_Wi-Fi Privacy Status alert. That Device uses the same type of connection as most of the other Devices (a ChromeCast Audio dongle). Why would just ONE Device have this issue, instead of ALL of the Devices on the Network? ogFile is attached.

Log-2021-10-18.txt

SamDel commented 2 years ago

'Guest Room Speakers' is also the leader of the '2nd Floor' group, and it doesn't reply to control messages for that group. But it does reply to messages send to the device itself. I don't know why, maybe the device is busy, or a poor connection...

But the 'Check Firewall...' message is a false alert. I changed the behaviour a bit in Setup 3.8.4.zip to avoid false alerts in cases like this.

FA-Bubba commented 2 years ago

Thank you; I will try 3.8.4 later....

Is there a way I can choose which device is the Leader of a Group?... And what are the pros & cons of a Device being a Leader?

FYI, unlike the 1st Floor Group, none of the 2nd Floor Speakers can be heard in multiple locations, so being in-sync is not an issue, I may remove the 2nd Floor Group, and just select those speaker individually. (Since I had selected them instead of their Group, I didn't think the Group would be a factor, but evidently it is...).

SamDel commented 2 years ago

Is there a way I can choose which device is the Leader of a Group?... And what are the pros & cons of a Device being a Leader?

That's done automatically bij the devices. Only Google knows how, I think.

FA-Bubba commented 2 years ago

I'm periodically getting the same false alert mentioned on my Oct 18 post above: 2021-12-14-DeviceBoxWarning

This is with version 3.8.4.0... and a "Reset Settings" fixed it.

What else can I check besides Router Firewall and Network Privacy Status?

Thank you!

SamDel commented 2 years ago

If "Reset Settings" fixed it then something went wrong with the communication with the device. I can't think of anything you can check, but sometimes there's an error in the log.