The third device (commonly referred to as the Media Renderer) does not need to discover the Media Server. It relies on the Client (aka Control Point) to select media and just plays whatever url it is passed.
If this doesn't work for you, please update your question to note the services/actions you are using.