Open Bug 1239909 Opened 9 years ago Updated 2 years ago

Turn on MDNS service on Windows

Categories

(Core :: Networking, defect, P5)

All
Windows
defect

Tracking

()

People

(Reporter: schien, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

Summary: Turn on MDNS service on Linux → Turn on MDNS service on Windows
Whiteboard: [necko-would-take]
(In reply to Shih-Chiang Chien [:schien] (UTC+8) (use ni? plz) from comment #0) > Windows doesn't support mDNS natively until Windows 10. > https://msdn.microsoft.com/en-us/library/windows.networking.servicediscovery. > dnssd.aspx The API works for Universal Windows Platform, and it seems Firefox is not a Windows Store app. At this moment I cannot find any other win32 API provides mDNS/DNS-SD features.
(In reply to Gary Chen [:xeonchen] from comment #1) > (In reply to Shih-Chiang Chien [:schien] (UTC+8) (use ni? plz) from comment > #0) > > Windows doesn't support mDNS natively until Windows 10. > > https://msdn.microsoft.com/en-us/library/windows.networking.servicediscovery. > > dnssd.aspx > > The API works for Universal Windows Platform, and it seems Firefox is not a > Windows Store app. No, this API works on desktop (Win32) App.
(In reply to Makoto Kato [:m_kato] from comment #2) > (In reply to Gary Chen [:xeonchen] from comment #1) > > (In reply to Shih-Chiang Chien [:schien] (UTC+8) (use ni? plz) from comment > > #0) > > > Windows doesn't support mDNS natively until Windows 10. > > > https://msdn.microsoft.com/en-us/library/windows.networking.servicediscovery. > > > dnssd.aspx > > > > The API works for Universal Windows Platform, and it seems Firefox is not a > > Windows Store app. > > No, this API works on desktop (Win32) App. Hi Kato-san, Would you give more details, like example or document, about this?
Flags: needinfo?(m_kato)
(In reply to Gary Chen [:xeonchen] from comment #3) > (In reply to Makoto Kato [:m_kato] from comment #2) > > (In reply to Gary Chen [:xeonchen] from comment #1) > > > (In reply to Shih-Chiang Chien [:schien] (UTC+8) (use ni? plz) from comment > > > #0) > > > > Windows doesn't support mDNS natively until Windows 10. > > > > https://msdn.microsoft.com/en-us/library/windows.networking.servicediscovery. > > > > dnssd.aspx > > > > > > The API works for Universal Windows Platform, and it seems Firefox is not a > > > Windows Store app. > > > > No, this API works on desktop (Win32) App. > > Hi Kato-san, > > Would you give more details, like example or document, about this? You must learn WRL and C++ based Store App:-) I think that you can create DeviceWatcher object #include "mozwrlbase.h" ComPtr<IDeviceInformationStatics> deviceInformationStatics; GetActivationFactory( HStringReference(RuntimeClass_Windows_Devices_Enumeration_DeviceInformation).Get(), deviceInformationStatics.GetAddressOf()); ComPtr<IDeviceWatcher> watcher; dviceInformationStatics->CreateWatcherAqsFilterAndAdditionalProperties(..., watcher.GetAddressOf()); Then, you can get IDeviceInformation via Add event.
Flags: needinfo?(m_kato)
Does this use for FxTV's service type only? If I have a test environment without TV, I can implement it.
(In reply to Makoto Kato [:m_kato] from comment #5) > Does this use for FxTV's service type only? If I have a test environment > without TV, I can implement it. No, this is for Firefox desktop browser on Windows. You can test it on any Windows environment. Thank you for helping!!
To be more specific, we are trying to provide a unified XPCOM interface [1] for MDNS service discovery and service registration on all supported OS. For windows we need a replacement of MDNSResponderOperator [2] that connect to Windows API/Service. [1] https://dxr.mozilla.org/mozilla-central/source/netwerk/dns/mdns/nsIDNSServiceDiscovery.idl#180 [2] https://dxr.mozilla.org/mozilla-central/source/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.