如何将文件服务器服务发布到本地网络?
我的问题是关于“本地网络上文件服务器服务的自动发现”。
我想实现一个基本上是文件服务器的服务并将其发布在本地网络上。 连接到本地网络的客户端PC应该自动找到该服务并映射(挂载)网络驱动器,而无需用户干预。
当我浏览一下网页时,我认为 Apple 的“Bonjour”和 Windows 的“UPnP”是实现此类功能的最佳选择。
这是正确的假设吗?你还知道其他好的建议吗? Linux 怎么样?
更新: 仅供参考 - 我通过使用 Avahi 在 Linux 上完成了零配置软件实现Mac OS X 网络和 PnP-X 用于Windows 网络。您可以在此处找到 PnP-X 示例代码。另请参阅我的另一个问题对于 PnP-X。
My question is about "automatic discovery of file server service on local network".
I want to implement a service which is file server basically and publish it on local network.
Client PC which is connected to local network should find this service automatically and map (mount) network drive without user's intervention.
As I look through web shortly, I think "Bonjour" for Apple and "UPnP" for Windows is best option to implement this kind of feature.
Is this right assumption? Do you know any other good suggestion? How about Linux?
UPDATE:
FYI - I finished my zero-configuration SW implementation on Linux by using Avahi for Mac OS X network and PnP-X for Windows network. You can find PnP-X sample codes at here. Also, see my another question for PnP-X.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Bonjour (mDNS) 是一个很好的解决方案,并且有适用于 Mac、Windows 和 Linux 的稳定库。
Apple 已开源其参考 mDNS 实现,并且使其在大多数平台上进行编译非常简单。还有许多脚本语言的包装器,例如 Net::MDNS 对于红宝石。
Bonjour (mDNS) is a good solution and there are stable libraries for Mac, Windows and Linux.
Apple has open-sourced its reference mDNS implementation and getting it to compile on most platforms is pretty trivial. There are also wrappers for many scripting languages, for example Net::MDNS for ruby.
我认为您正在寻找的是零配置网络,它是一个不受约束的技术规范给任何供应商。 Apple 的 Bonjour 和 Microsoft 的 UPnP SSDP 是零配置网络的不同实现。一般来说,它允许您以零网络配置来宣布/发现网络服务。如果您使用 Java,已经有一些框架可以让您的生活更轻松 JmDNS 和 Cling。
I think what you are looking for is Zero configuration networking, it is a technical specification that is not bound to any vendor. Bonjour from Apple and UPnP SSDP from Microsoft are different implementation of Zero configuration networking. Generally speaking, it allows you announce/discovery network service with zero network configuration. If you are with Java, there are already some frameworks that makes your life easier JmDNS and Cling.