I am creating an application that scans for mDNS services. But after the first scan it does not matter if I got a response/discovery is successful or not, the next scans will not scan anymore.
Before running the application, I am checking the mDNS service using terminal with this commands
dns-sd -B <service name>
I got a response. But after I ran the application, if I run this command again, it will be stuck to
"Browsing for <service name>"
I have also tried modifying registry editor to enable multicast and installing bonjour. I also check the services for supports for mDNS is running which is running. Still does not work. Also the application have no issues working on windows 11, only on windows 10. But some Windows 10 with different OS build works fine.
Not working windows 10:
Edition Windows 10 Pro Version 22H2 OS build 19045.5487
Working windows 10: Windows: Windows 10 pro Version: 22h2 OS build: 19045.4894
I am using nsd 2.3.1 package from flutter. Creating a separate application using this will work fine. Meaning discovery is always working. It is just that after running my application any other discovery will fail/stuck without any error being log.