I am not able to connect to my Whitelisted Chromecast through the given address (ip.address:9222) as mentioned here: https://developers.google.com/cast/developing_your_receiver#
Also make sure that your HTTP server will respond correctly to POST requests for your receiver URL as well as that same URL with '/whatever_you_pass_to_ApplicationSession.startSession' which was an issue with our Rails server.