jbagg / QtZeroConf

Qt wrapper class for ZeroConf libraries across various platforms.
Other
70 stars 51 forks source link

Windows 10 Loses Devices On WiFi Network Toggle #29

Open wumpus7 opened 5 years ago

wumpus7 commented 5 years ago

We're seeing the following issue:

Windows 10 laptop on wireless network A.

1) Start up our app, browse for devices, devices found. 2) Change wifi network to B. (Old devices lost, new devices found.) 3) Switch back to wifi network A, no devices found.

The only way to find devices again seems to be to restart the laptop.

wumpus7 commented 5 years ago

Using dns-sd, I can see that the devices are added and removed appropriately until step 3, so this looks like an OS issue. (That is, if dns-sd can't see the devices, then there's no way QZeroConf can.)

wumpus7 commented 5 years ago

Alternatively, since you have to install Bonjour on Windows, it could be an issue with the Bonjour library... Which would make it Apple's bug instead of Microsoft's.

jbagg commented 5 years ago

I've updated the boujour sdk in QtZeroConf from 333 to 878.200. Please test. I've seen a lot of firewall issues with windows 10. Devices initially discover and then disappearing after a few min.

AVee commented 4 years ago

From what I've seen multicast in Windows depends on the metric of the interface, where the interface with the lowest metric will be used for multicasts. By default Windows sets the metric automatically, but often gets it wrong when there are changes to the interfaces. If you set the metric manually on the Wifi interface to be the lowest in the system it will probably start working again. (Unless the issue you are seeing is something different...)