Jesus Rodriguez has a description of WS-Discovery that covers examples in WCF 4.0 for ad hoc discovery networks. Ad hoc discovery is the approach that uses broadcast messages to publish and discover resources on the network. The other approach, managed discovery, uses a centralized service to coordinate resources.