-
Notifications
You must be signed in to change notification settings - Fork 243
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
Cannot find my Chromecast #26
Comments
Can you at first checkout if it works with turned out firewall? |
Ah, good point! Stopping firewalld allowed to find the chrome cast device. Here is some info on firewalld https://fedoraproject.org/wiki/FirewallD As to what could be improved in castnow short term, I could say:
thanks! |
This doc is more useful I think. What ports will castnow use? |
Turning off my firewall definitely did it. Which ports is castnow looking for? |
Hey guys, update castnow to v0.4.3 and checkout the just created wiki: https://github.com/xat/castnow/wiki |
I fixed the timeout problem. So it now times out again after 10 seconds with a "device not found" message. I'll not change the error message to something firewall specific since the timeout could also happen because of other reasons (like there is no chromecast stick present for example). |
I have this problem running castnow in a jail on freenas. The scanning goes for 10seconds and then stops. |
Did you also check that the UDP Traffic generated by the MDNS scan isn't blocked in some way? |
Thanks for the reply. How would I go about testing that? This is a straightforward jail, running on freenas. raw sockets are enabled, and nmap works just fine so it should be able to scan? There is no firewall or any packages like that installed, and nothing else is blocking. Is there a way for me test this that I'm not familiar with. here is the output from nap root@test:/ # nmap -PU -O 192.168.1.102 Starting Nmap 6.47 ( http://nmap.org ) at 2014-12-03 14:11 GMT |
can you try running castnow with the option |
ah that works. It finds it.. but it doesn't play. Here is the debug output root@test:/mnt/multimedia/01 TV/the wire/Series 1 # castnow --address 192.168.1.102 '[09] the.wire.s01e09.dvdrip.xvid-med.avi' |
Nice TV Show taste :D avi files will only work with the --tomp4 option which requires ffmpeg. |
I've tried that. still no joy. I have ffmpeg installed.. here is the output ffmpeg version 2.3.5 Copyright (c) 2000-2014 the FFmpeg developers Here is the output from castnow: root@test:/home # castnow --address 192.168.1.102 '[13] the.wire.s01e13.dvdrip.xvid-med.avi' --tomp4 |
The wire is the best show I know.. maybe beaten by True Detectives though:) |
I downloaded an mp4 test file to check that it doesn't play either castnow launching... +0ms |
and playing a youtube video WORKS. which is great. Not sure why local files are not? but this is not really relevant to this ticket |
We will figure out what the problem is :) Can you clone the repo and run |
done
|
replace the content of plugins/localfile.js with the code in this gist: https://gist.github.com/xat/a24eac920c590eced912 afterwards show the debug messages that appear when you run |
I'm away for a few hours, will inspect the DEBUG messages you'll paste later |
not sure if i’ve done this correctly. Your DEBUG= never worked on my freebsd based system. I had to run setenv DEBUG castnow which then is picked up and runs castnow in the debug setting. if i interpreted things correctly I then run root@test:~/castnow # ./index.js ~/small.mp4 /root/castnow/plugins/localfile.js:1
|
I think you also copied HTML source. try this:
|
seamed to happen with that link too, so i resorted to good old cut and paste. here is the output root@test:~ # ./castnow/index.js --address 192.168.1.102 ./small.mp4
|
Oh, just noticed, the DEBUG env must be set to |
ah, i tried to set that a few times but needed to enclose it in ‘ ‘ here you go root@test:~ # ./castnow/index.js --address 192.168.1.102 ./small.mp4
|
can you try:
|
problem solved: root@test:~ # ./castnow/index.js --myip 192.168.1.24 --address 192.168.1.102 ./small.mp4
|
castnow tries to figure out your main IP. In most cases it figures out the correct IP, but not in all cases. |
Thanks for your help. Now the multi million dollar question, do you think there is anyway of integrating this into plex! i posted on a forum, but got told no way. But to have this on a plex server page, would mean that I didn’t have to keep using chrome to bloody play stuff. Which I hate!
|
Hmm, I never used Plex, so I can't tell :) |
Is it possible to document the --address option in the --help output? It's quite useful and saves searching for a solution when mDNS is blocked. |
Yes, done :) |
On Fedora 20, fully up to date. It installs correctly. It stalls forever "scanning". Passing --device 'the right name' did not help. Neither --verbose nor --debug flags shed any light.
Chrome web browser with the chrome cast extension finds the Chromecast immediately and can cast a tab without problem.
The machine has a single network interface active. Passing --myip did not help either.
The machine has a physical network (1Gbps) to the AP where the Chromecast is associated. Other machines also connect the Chromecast over the same network without problem.
What can I do to help debug this? I'm a fairly competent programmer, but not familiar with the node.js stack in the least.
thanks!
~martin
The text was updated successfully, but these errors were encountered: