What are some strategies for a client to discover a service?
For example, we have a client that wants to connect to a service (assuming they are on same subnet on the same network), what's a good way to discover that a service is running and then therefore the client will attempt to connect to it?
Would we want the client to broadcast often and wait for the service to respond? Or would we have the service broadcast often and have the client listen?
I would think we would want the service to broadcast itself and have the client listen.
What's standard practice for this?
The service for example will be something like a music player that plays music when a client remote controls to it via wifi/network. Think of iTunes Remote for iPhone controlling the iTunes player on a PC/MAC.