How to publish a file server service on a local network?

My question is about "automatically detecting the file server service on the local network."

I want to implement a service, which is basically a file server, and publish it on a local network. A client PC connected to the local network should automatically find this service and map (mount) the network drive without user intervention.

As I browse the website soon, I think Bonjour for Apple and UPnP for Windows are the best options for implementing this feature.

Is this a correct guess? Do you know any other good suggestions? What about Linux?

UPDATE: FYI. I ended up implementing a zero-configuration SW configuration on Linux using Avahi for the Mac OS X network and PnP-X for the Windows network. You can find PnP-X sample codes at here . Also see my other question for PnP-X.

+4
source share
2 answers

Bonjour (mDNS) is a good solution, and there are stable libraries for Mac, Windows, and Linux.

Apple has open-sourced its reference implementation of mDNS and its compilation on most platforms is pretty trivial. There are also wrappers for many scripting languages, such as Net :: MDNS for ruby.

+3
source

I think that you are looking for Zero configuration networking , this is a technical specification that is not tied to any of the suppliers. Apple's Bonjour and Microsoft's UPnP SSDP are another implementation of Zero's configuration networks. Generally speaking, it allows you to advertise / discover network services with a zero network configuration. If you use Java, there are already some frameworks that make your JmDNS and Cling easier.

+2
source

All Articles