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

Connection issues when not explicitely stating the IPs. #259

Open
framethrower opened this issue Jan 6, 2021 · 2 comments
Open

Connection issues when not explicitely stating the IPs. #259

framethrower opened this issue Jan 6, 2021 · 2 comments

Comments

@framethrower
Copy link

framethrower commented Jan 6, 2021

I could not connect to my chromecast until i explicitely stated the IPs involved.

I know this is not a bug, but it should probably be mentioned somewhere in the readme / wiki.

All devices involved should always get the same IPs from your router.
In this case my PC has the 192.168.1.150 and the chromecast has the 192.168.1.190:

Some working examples:

castnow --address 192.168.1.190 --myip 192.168.1.150

castnow --seek 00:05:00 --ffmpeg-c:a ac3 --address 192.168.1.190 --myip 192.168.1.150 Star.Wars.The.Clone.Wars.S05E02.1080p.BluRay.x264.ac3.44100.mp4

screen -m -S cast_session castnow --seek 00:05:00 --ffmpeg-c:a ac3 --address 192.168.1.190 --myip 192.168.1.150 Star.Wars.The.Clone.Wars.S05E02.1080p.BluRay.x264.ac3.44100.mp4

@sebma
Copy link

sebma commented Jul 27, 2021

@framethrower I have the same pb. :

$ time DEBUG='castnow*' castnow https://youtube.com/v/RZW7eTbT1Mk
  castnow volume step: 0.02 +0ms
  castnow launching... +2ms
  castnow:stdin [ { path: 'https://youtube.com/v/RZW7eTbT1Mk' } ] +3ms
  castnow player status: loading plugins +10ms
  castnow player status: scanning +1ms
  castnow player error: Error: device not found at Timeout.<anonymous> (/usr/local/lib/node_modules/chromecast-scanner/index.js:24:8) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10) +10s
Error: device not found

real	0m14.935s
user	0m5.031s
sys	0m0.261s

@etesami
Copy link

etesami commented May 5, 2023

The same issue is experienced on Ubuntu 22.04. Having castnow running inside a Docker container while it uses the host networking. Using --myip host_ip fixes the issue.

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

3 participants