Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting not working - CastToTV wrong interface binding #141

Open
OlexTratisky opened this issue Apr 10, 2021 · 3 comments
Open

Casting not working - CastToTV wrong interface binding #141

OlexTratisky opened this issue Apr 10, 2021 · 3 comments
Assignees

Comments

@OlexTratisky
Copy link

OlexTratisky commented Apr 10, 2021

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
Copy link
Owner

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
Copy link
Author

OlexTratisky commented Apr 12, 2021

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants