zhanghai / zhanghai/MaterialFiles
[Feature Request]通过 DNS-SD 发现局域网中的服务
Open
@zhanghai is already working on this.
Since Sep 10, 2025.
enhancement
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
dns-sd 使用和 mDNS 兼容的协议来注册/发现局域网中的服务,例如 http 服务、smb 服务等。您在这里提到新版 Windows 使用 WS-Discovery 机制来发现 smb 服务,且没有合适的 java 实现,smb 也没有支持,所以质感文件未实现一个给新版 Windows 可用的发现机制。但是 DNS-SD 的状态就好得多:
- 它在 Linux 下被 systemd-resolved/avahi 直接支持
- Windows 也实现了它的支持:https://learn.microsoft.com/en-us/uwp/api/windows.networking.servicediscovery.dnssd
- macOS 的话我并不了解,按这里的内容 Bonjour 应该也有相关支持
- Android 可以使用 NSD 来发现/注册服务
综上所述,我觉得让质感文件通过 DNS-SD 机制发现局域网中的服务是一个可行方案?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.