简体   繁体   English

尝试使用Bonjour运行演示应用,但无法发现在同一主机上运行的服务器

[英]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.

相关问题 我无法在openCV中运行camshift演示 - I can't run camshift demo in openCV 在部署时,dev计算机上运行App将不会运行 - Running App on dev machine won't run when deployed 无法运行使用macdeployqt创建的OSX应用。 使用Fusion样式时缺少Cocoa插件 - Can't run OSX app created with macdeployqt. Missing Cocoa plugin when using Fusion style 无法使用 C++ 中的 OpenSSL 连接到主机 - Can't connect to host using OpenSSL in C++ 运行演示文档的问题 - Issues with running a Demo Documentation 当主机详细信息有效但服务器端应用程序未运行时,boost :: asio :: io_service.run()需要很长时间才能返回 - boost::asio :: io_service.run() takes long time to return when host details are valid but server side application is not running 为什么我不能编译 Boost.Serialization 演示? - Why can't I compile the Boost.Serialization demo? 不能同时运行kinect语音,姿势和手势识别 - Can't run kinect speech,pose and gesture recognition at same time 无法在OpenGl上使用AssImp运行场景 - Can't run scene using AssImp on OpenGl 手动运行应用程序时无法加载dll,但通过ide运行应用程序时可以工作 - Can't load dll when running app manually but work when running app through ide
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM