[英]Trying to run demo app using Bonjour, but it can't discover the server running on the same host
I've successfully compiled the demo app from a tutorial on using Bonjour from Qt , but when the client runs, it can't find the server, even though the server is running on the same computer! 我已经从有关使用Qt的Bonjour的教程中成功编译了演示应用程序,但是当客户端运行时,即使服务器在同一台计算机上运行,它也找不到服务器!
Both the client and server use only dnssd.dll
. 客户端和服务器都仅使用
dnssd.dll
。 Am I missing something? 我想念什么吗? Do I need to have some sort of a daemon running?
我需要运行某种守护程序吗?
I have no experience with Bonjour so it's entirely possible I've missed something obvious. 我没有Bonjour的经验,所以我很可能错过了一些显而易见的事情。
I found the answer at https://stackoverflow.com/a/1975685/492336 我在https://stackoverflow.com/a/1975685/492336找到了答案
It turns out I need to download and run the Bonjour Installer from Apple. 事实证明,我需要从Apple下载并运行Bonjour安装程序。
After I installed Bonjour Printer Services, the demo client discovers the demo server. 安装Bonjour打印机服务后,演示客户端会发现演示服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.