muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.22k stars 139 forks source link

Use IP on the same subnet as chromecasts to be used #205

Open ChrisLane opened 6 years ago

ChrisLane commented 6 years ago

I just experienced a problem where I could begin a stream to my Chromecast where the video would never begin, this is because the program was using the IP of my VPN tunnel rather than of my local network.

It would be good if the program could discover Chromecasts and then decide what IP to use based on which is selected.

You can see how this might be a bit silly at the moment with many networks. "The IP of My Chromecast is: 192.168.0.24 Your local IP is: 10.8.0.6"

muammar commented 6 years ago

For that situation what I have implemented is the host flag where you have to manually set the IP.

What you are asking in this report is to look for a local ip that has 192.168.... Is that correct? If you have an idea on how to implement it, I would be happy to accept PR. That would be located here.