windows 如何检测附近连接了 wifi 的网络打印机?

How windows detect nearby network printers connected with wifi?

请解释一下 Windows 如何检测附近的打印机,因为 Mac OS 使用 Bonjour 检测它们。我希望我的 android 设备在附近的 Windows 列表中被检测为打印机。我正在使用 NSD 通过 ipp 协议注册网络服务,它在 Mac OS 中运行良好。现在我也想要 Windows 的相同功能。请在这里帮助我。

我目前担任技术支持职位 - Windows 不能保证实际找到任何东西。您可以在网络上拥有多台打印机,以不同的方式共享。打印机也可能位于单独的 vlan 上,您的网络也可能有干扰这些协议运行的规则和设备。

与其依赖用户网络的完整性(这不太可能说明),您应该找到用户设备的 IP 地址,并向用户提供有关如何将 Windows 设备连接到您的设备的说明应用程序。

但是,如果您想与歌利亚战斗,请阅读以下内容:https://technet.microsoft.com/en-us/library/cc783789%28v=ws.10%29.aspx

从 Windows Vista 开始,我相信它使用 Web 服务动态发现 (WS-Discovery)。

The component WSDMON in Windows 7 and later uses WS-Discovery to automatically discover WSD-enabled network printers, which show in Network in Windows Explorer, and can be installed by double-clicking on them. In Windows 8 or later installation is automatic. WS-Discovery is enabled by default in networked HP printers since circa 2008.

https://en.wikipedia.org/wiki/WS-Discovery

Windows 的早期版本使用 NetBIOS 和 SMB,但我想我们在这里谈论的是现代 Windows。