Google Home Cast - Different Network - chromecast

Is it possible to send a broadcast command to a Google mini that is on a different network? Basically, I can access Google Home mini from my laptop, but the mini can't access my laptop because I have a router in the middle - which means my laptop can reach the mini's API, but I can't discovery the device, as the mini can't send packages back to my laptop.
Is there any local api that can be called? In other words, my laptop can initiate the call and ask google mini to play the audio - like a manual discovery, as the mini's IP is fixed.
Or is there a Google Cloud API capable of playing the audio?

I found the solution
The sample below contains the parameter called --known-host, which connects to a device that is available. As I mentioned, my device is reachable from my laptop, but cannot ping my laptop from outside.
https://github.com/home-assistant-libs/pychromecast/blob/master/examples/bbcsounds_example.py

Related

Need help for Mobile application Proxy connectivity with jmeter

I am trying to record Mobile application via jmeter for which I have done all the necessary setup in mobile device and desktop jmeter. I am facing issues with Windows Firewall as it is blocking all incoming traffic from the mobile, as this machine is administered by my organization i cannot turn off the firewall, any suggestions on how I can allow the traffic with firewall enabled?
Due to proxy setup the traffic will always come from a single port although the IP address may change depending upon the device.
Screenshot of all dropped requests arriving from Mobile device
Ask your network administrators instead of JMeter community in the Internet
Get yourself a separate Wi-Fi adapter which can act as an access point and connect your mobile device to it
Use an emulator or simulator instead of real device so everything will happen on your machine
Install a sniffer tool on the device and capture traffic there directly, once you have a .pcap or .har file you can use BlazeMeter Converter for transforming it into a JMeter script.

Apple passes development environment

I am trying to understand how to work with apple passes whilst using localhost. I am using Android Usb debugging so I can visit my website served on localhost from my phone. I have also setup the signing, compressing and installation of the passes.
What I don't understand, is how to debug communications between the installed pass and my server. I don't seem to be receiving requests from the pass once it is installed. Is this because I am using localhost? I inserted localhost as the web service in the pass.json file used to generate the file. My problem is understanding how to debug the problem as I am getting no feedback to work on.
Localhost won't work as the device will view localhost as itself, not as your computer.
To work locally:
connect your phone and computer to the same wireless network
allow http in the developer menu of your iPhone (otherwise the pass will be rejected for not having a https webServiceURL)
use http://computerIp:8080/ as the webServiceURL
serve your web service on your computer on port 8080
For feedback you can view your device logs in Xcode or in the OSX Console application.

Socket.io app not working on other devices when ran from server

I have built a socket.io app which I have ran continously using the forever command from SSH.
I am a university student and I have done this in the university. I can go onto the website / socket.io app using any computer in the university, however I cannot use my mobile phone or personal computer to access the site.
When I try and access the site, it takes about a minute to try and access the site, but then it just says "this site cannot be reached".
Is there a way I can access the site from any device? As I said, the script is running continously so there is no issue with that...
It sounds like your server is not on the public internet. Instead, it's on your university network and when you get on a device that tries to access it from the public internet, then the university firewalls won't allow it to be reached and/or the IP address you are using to access the server is not a public IP address.
When on the university network (as WiFi, for example), some universities also have multiple classes of devices on the network. Some are allowed to access any resources on the network. Others are only allowed to access public resources on the university network or resources on the internet. It could be that the computers in the university have the right privileges and it could be that your mobile phone or laptop do not, even if they are on the university WiFi.
Though there are several different ways to fix this, the usual approach is to deploy your server outside the university network in a place that it can be accessed from anywhere on the public internet (typically a hosting provider that supports the features your server needs). And, to reach your server, you would set up a DNS entry such as myplayserver.com that points at the public IP address of your server.

Local web server (not on any network) with Ethernet out to Wifi

This is my first post here so please bear with my ignorance. That said, here is what I need some advice on
I have a device that acts a web server and is not connected to any network. This device has an Ethernet out that can be connected to a PC which can then be used to access its home page using a browser. I'm trying to figure out a way to access the home page of this device using a tablet say an iPad. How can I do this? Thanks

Google Cast App without internet

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.
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.
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.
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.
Chromecast requires an internet connection when it boots up and to load the receiver apps. Your media content can come from a local web server once the receiver app is loaded.

Resources