Make sure your receiver application downloads the javascript file cast_receiver.js and also starts the castReceiverManager instance.
I saw the same timeout message before I did this. My recipient source code was just static HTML, but apparently this is not enough.
The following, in my index.html receiver, helped:
< script src = "//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"> < / script>
< script>
window.castReceiverManager = cast.receiver.CastReceiverManager.getInstance(); window.castReceiverManager.start();
< / script>
code>
(copied from https://developers.google.com/cast/docs/custom_receiver )
source share