Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug whitelisted Chromecast

Tags:

chromecast

I have completed Google's form to enable my device to be whitelisted and have been provided with an AppID.

I have followed the procedures outlined here to try and debug the device with no success: https://developers.google.com/cast/developing_your_receiver#debugging

I am able to ping my device by the IP, but connecting to port 9222 results in failure. Telnet to that port is also unsuccessful.

Does anyone know why this might not be working? I must be missing something simple.

like image 733
user995551 Avatar asked Jul 31 '13 15:07

user995551


2 Answers

The problem was that my Chromecast device was not sending the serial number to Google.

I was able to get it to work by enabling the sending of the devices serial number in the Windows settings utility (changing this setting in the android app didn't seem to work). After changing the setting I rebooted the device, and now I can connect on port 9222. I am not sure why this isn't in the developer walk through... or maybe I missed it?

like image 57
user995551 Avatar answered Oct 18 '22 19:10

user995551


I only got this option when I opened "Options" in the Google Cast Extension inside Chrome and then clicked on the blue icon about a dozen times very quickly. Suddenly a new option appeared at the bottom where I could enter the hostname of my whitelisted URL:

Chrome Cast Extension Magic Options

I also made sure that "send serial number" was enabled in the Chromecast.app (and make sure to reboot!)

Chromecast.app settings

Now, I am able to hit port 9222 in a browser and can see my app at http://{my-chromcast-ip}:9222/. I can use dev tools in Chrome to debug, refresh the page, inspect on-screen elements, etc.

like image 38
DustinB Avatar answered Oct 18 '22 18:10

DustinB