Rafostar / gnome-shell-extension-cast-to-tv

Cast files to Chromecast, web browser or media player app over local network.
GNU General Public License v2.0
290 stars 16 forks source link

Casting not working - CastToTV wrong interface binding #141

Open OlexTratisky opened 3 years ago

OlexTratisky commented 3 years ago

Hello, i am running latest popOS and trying the cast-to-tv extension, it installs correctly but it seems to be binding to my ppp connection instead of wifi thus the chromecast is not detected/scanned. When i go to the settings i see access webplayer on http://PPP_IP:4000 it should be http://WIFI_IP:4000 so my question is how can i make it listen on a specific interface?

My configuration is as follow: LGTV-UM74 with built in chromecast/airplay feature, ppp connection using usb dongle. WIFI in hotspot mode (my pc acting as a hotspot system)

Thanks

Rafostar commented 3 years ago

To get an IP we use node internal-ip module which according to description:

returns the address of the internet-facing interface, as determined from the default gateway.

If you would change your default internet gateway in your config, then it should return another address.

I can add an option to manually write/select some custom IP if this is requested feature. The current "auto" method is the easiest to deal with and nobody complained up to this point :-)

OlexTratisky commented 3 years ago

Hello, can you please advise in which file should i change the gateway / config ? I cannot change the default gw of my machine as i wont be able to connect to the internet

Rafostar commented 3 years ago

There are few places in code where this would need to be changed if that is what you are asking. If you cannot change default gateway config on your machine, then this would need adding an option to Cast to TV to set a custom host IP for a proper fix.