Google Cast App without internet

12,740

Solution 1

As of early February 2015 the Chromecast requires an internet connection to stream even local content (i.e. from your computer over your wifi).

The reason is that, to facilitate the media playback, special code (Javascript) is run directly from Google servers. Why can't Google just download this code directly to the Chromecast one time? I believe it has to do with security amongst other reasons (some nice and some not so nice)

The evidence? My internet goes down all the time, interrupting whatever I'm casting.

Solution 2

As Leon says, the 'cast needs Internet access part of the time. Booting (I didn't know that!), and to resolve the AppID to the receiver app URL. Once the 'cast has the URL to load and had resolved the hostname in the URL to an IP address, it no longer requires the Internet, IF everything is set up correctly and on the local subnet.

For example, I develop cast apps at home. Lets say I registered my app and the custom receiver associated with it is at https://10.0.0.5/basil_app1/reciever.html (or at a hostname that resolves in public DNS to the private IP 10.0.0.5, a hostname is what I actually use).

Then, if my app needs to load further media, it can reference it either by the already resolved hostname, or by IP, again served from the host at 10.0.0.5

It sounds a little like you're unclear on how to set up and interact with a private network and web server, which is not a Chromecast problem really.

For me, if I had to do a Chromecast demo at (for example) a customer site and was unsure of the network situation, I'd set up the Chromecast to use a private hotspot Wifi network provided by my cell phone, and have all the web resources needed served from my laptop, again configured on the private Wifi network. Again, not really a 'cast programming problem.

Solution 3

I have the following setup to cast from my PC to the chromecast using a mobile wireless connection.

  • ChromeCast -> Local Router -> PC with PDANet -> USB connect to Mobile Phone with FoxFi app installed.

Basically I have the PC and ChromeCast connected to a new wifi router ($25 belkin from Walmart). Initially, Chromecast yells at you because there isn't an internet connection. To kill the complaining from ChromeCast, simply install FoxFi on your mobile and PDANet on your PC. I've connected them via USB since the hotspot feature wont work with my carrier.

Once the connection has been established, you should see 2 connections on your PC and you can cast from PC to Chromecast. Watching netflix on it right now. Haven't tested from another device yet.

So....

Install:
-FoxFi on Samsung Galaxy S4
-PDANet on PC/Laptop

Connect:
- Samsung Galaxy S4 -> PC (via USB in my case)
- PC -> Local router
- Chromecast -> Local router

On your PC you should see 2 connections. The PDANet connection with internet access and the Local router with no internet access.

Also note that I initially installed the chromecast on my primary wifi that has internet access. No issues there, but just in case you try to get this method to work and it doesn't, maybe try setting it up on a router with inet access first, then switch to the non-inet router.

Share:
12,740
roschulze
Author by

roschulze

Updated on August 28, 2022

Comments

  • roschulze
    roschulze almost 2 years

    is it also possible to run Cast apps on Chromecast without internet access in a local network only? Maybe with an own webserver. For a showcase event I can not ensure access to the internet. The use case is for demonstration only.

    Thanks you.

  • roschulze
    roschulze almost 10 years
    Ok, to load my app I have to register it in the Google Console and set the URL. Then I can use the AppID to start the Cast App. Lets say the internet conncetion is interrupted now. How can the Cast App then receive content from a local webserver?
  • Ali Naddaf
    Ali Naddaf almost 10 years
    If internet connection is interrupted, how is that going to affect your local server? If it is truly local, it shouldn't care.
  • roschulze
    roschulze almost 10 years
    Thanks for your sample and description. Does it mean that your webserver at 10.0.0.5 is in your local network and is also available by a public IP address from the internet? Your AppID points to your public IP address and after loading your app you request all your data from your local webserver with a private IP address. At this point the Chromecast and your webserver are in the same private network right?
  • Basil
    Basil almost 10 years
    My webserver has a name in public DNS, but that name resolves to a private IP; this makes the web server unreachable, UNLESS the host (or the chromecast) is on the same private network, which when I work or demo, it is. A chromecast appID gets resolved by Google to a URL for the receiver; that URL can have either a hostname or an IP address for the host (or at least that used to be the case, I've been using hostname for the last few months). I find it easier to change a DNS entry than to change reciever URL, however there's a propagation delay with DNS.
  • roschulze
    roschulze almost 10 years
    You mean, your Cast receiver app is on your webserver at 10.0.0.5 and also your content? Is it also possible to receive content from other sources on the same WiFi network, after loading the app, maybe at 10.0.0.6?
  • Basil
    Basil almost 10 years
    Well, all my content - receiver and related media - are going to be served from the same server. But you could certainly add another host on the sub-net if you want. I presume your app (the sender) would then be telling the receiver where to get the content.
  • vin
    vin over 8 years
    you should try what @KodeMechanic has answered here. It works flawlessly.