1
votes

I have double checked chromecast serial number and the status show "ready for testing". When my android app sender connect to the chromecast, the chromecast show the Application Name, but x.x.x.x:9222 on Google Chrome is unable to start debug mode. x.x.x.x refused to connect. ERR_CONNECTION_REFUSED

2
Are you trying to connect when your app is running? Your app should be launched and running on chromecast for your debugger to be able to connect to it. Also make sure you reboot your chromecast once if you haven't done so after registering your device. - Ali Naddaf
Yes. Phone is connected to chromcast and chromcast showing app name. I have reboot it more than once. But still unable to get debug mode. - xenovox
Do you have any proxy setup on your network? If not, then try to contact our support to get further help (support.google.com/cast-developer/contact/…). - Ali Naddaf
Did you find a solution to this problem? - Micky

2 Answers

1
votes
  • Make sure all your devices(laptop, mobile device, chromecast) are connected to the same network
  • Add your chromecast device's serial number in the developer portal< https://cast.google.com/u/1/publish/#/overview > (which you already did)
  • Cast your video to the chromecast device
  • Go to the following url in chrome browser< chrome://inspect/#devices >
  • You will see your chromecast device and inspect below the url
  • Click on inspect to debug your receiver application
  • If the video is casting but you unable to find the device in chrome://inspect then it is probably because of your network. so try reconnecting your device to the network
0
votes

In the Chrome browser, enter the following in the address field to go to the Chrome inspector:

chrome://inspect

Add this line in your custom receiver to enable debug logs

cast.receiver.logger.setLevelValue(cast.receiver.LoggerLevel.DEBUG);

For more information on chromecast debugging you may refer to the following link

https://developers.google.com/cast/docs/debugging