ithlony / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Android Chromecast setup App bug in dual stack (IPv4 and IPv6) networks that may make it unable to set up any Chromecast #594

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Chromecast Setup App version: 1.11.1
Android version 5.1.1 (Nexus 7, 2013)

After the App has configured the Chromecast with the local wi-fi settings, the 
Chromecast will successfully connect to the local network, obtain an IP (v4) 
address and start transmitting (e.g. a packet sniffer can view the multicast 
advertisements from the Chromecast).

At the same time, the Android device will disconnect from the Chromecast 
access-point and connect to the local network.  When it obtains an address, it 
will attempt to discover the Chromecast using IP multicast.

The problem occurs if the Android device receives an IPv6 address before it 
receives an IPv4 address.  It then tries to discover the Chromecast using IPv6 
and will give up before the IPv4 stack is ready.  Retrying does not help - it 
will cause the Android app to repeat all the steps and fail in exactly the same 
way.

Note 1: the IPv4 address allocation always lags behind the IPv6 allocation 
because the Android device first tries to register the IPv4 address that the 
Chromecast assigned it (192.168.255.251), before falling back to DHCPDISCOVER. 

Note 2: this is not a bug in the Chromecast - it is a bug in the setup App - 
the Chromecast works perfectly during set up.

A solution would be to wait until the IPv4 stack is available before attempting 
to discover the Chromecast.  A workaround would be to allow the App to retry 
discovery only without retrying the whole Chromecast setup (which involves 
disconnecting from the local wi-fi and network).

My workaround was to temporarily disable IPv6 configuration on the local 
network,
and restore it after the App had discovered the Chromecast.  (The Chromecast 
was
discovered immediately with this workaround in place.)

Original issue reported on code.google.com by qqjd...@googlemail.com on 15 Jun 2015 at 3:07

GoogleCodeExporter commented 8 years ago
If this is an issue with the Chromecast setup app, please report it here: 
https://productforums.google.com/forum/#!forum/chromecast. You can try 
troubleshooting the issue at this link as well: 
https://support.google.com/chromecast/troubleshooter/2995236.

Feel free to report back if you face any Google Cast SDK related issue and we 
would be glad to assist you with it. 

Original comment by na...@google.com on 16 Jun 2015 at 1:45

GoogleCodeExporter commented 8 years ago
Thanks for the pointer to the product forums.  I had originally reported the 
error there (as it isn't a Chromecast bug), but was pointed here.  I will retry 
in the product forums.

Please feel free to close the bug here.

Thanks,

J

Original comment by qqjd...@googlemail.com on 17 Jun 2015 at 6:53