Coder Social home page Coder Social logo

catt scan unable to find devices about catt HOT 10 OPEN

diimpp avatar diimpp commented on August 29, 2024
catt scan unable to find devices

from catt.

Comments (10)

diimpp avatar diimpp commented on August 29, 2024 1

@xiota as far as I understand my issue is not related to connectivity, I can cast from chrome and the same time catt fails to find devices, catt has never worked for me even once in my current setup. If anything, it has something to do with samsung tv device, which is too old or something like that.

from catt.

diimpp avatar diimpp commented on August 29, 2024

Tv has several ports open

$ nmap 192.168.1.2
Starting Nmap 7.80 ( https://nmap.org ) at 2022-12-11 22:40 +04
Nmap scan report for 192.168.1.2
Host is up (0.0088s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
8001/tcp open  vcom-tunnel
8002/tcp open  teradataordbms
8080/tcp open  http-proxy
9080/tcp open  glrpc

Nmap done: 1 IP address (1 host up) scanned in 0.23 seconds

What's my next step? How do I debug this?

from catt.

diimpp avatar diimpp commented on August 29, 2024
$ python3.10 -m netdisco
Discovered devices:
Discovered 0 devices
$ catt -d 192.168.1.2 scan
Scanning Chromecasts...
Error: No devices found.

$ catt -d 192.168.1.2 cast  https://www.youtube.com/watch\?v\=dQw4w9WgXcQ
Error: No device found at 192.168.1.2.

from catt.

sbradnick avatar sbradnick commented on August 29, 2024

If you have one running, have you tried disabling a firewall on the host to ensure it isn't possibly blocking? I use firewalld in openSUSE and I have to allow some inbound ports for it all to work.

rule family="ipv4" source mac="<some chromecast dev mac addr>" port port="32768-60999" protocol="tcp" accept
rule family="ipv4" source mac="<some other chromecast mac addr>" port port="32768-60999" protocol="tcp" accept
rule family="ipv4" destination address="224.0.0.0/24" protocol value="udp" accept

from catt.

diimpp avatar diimpp commented on August 29, 2024

@sbradnick ubuntu seems to use ufw by default and it's disabled for me. Chromium on the PC is able to find and cast to a tv, so my guess it's not a network issue.

$ sudo ufw status
Status: inactive

Is there a way to make a curl request to a TV and get info on whatever chromecast protocols available? Could it be just a older unsupported TV?

from catt.

xiota avatar xiota commented on August 29, 2024

catt compiled from ddc5989 was previously working for me. Stopped working today. Recompiled with 82cd0fe. catt scan intermittently has different outputs:

$ catt scan
Scanning Chromecasts...
Error: No devices found.

$ catt scan
Scanning Chromecasts...
Failed to determine cast type for host <unknown> (<urlopen error [Errno 113] No route to host>) (services:{ServiceInfo(type='mdns', data='SmartTV-4K-xxxxx._googlecast._tcp.local.')})
xxx.xxx.xxx.xxx - xxxxx - Unknown manufacturer SmartTV 4K

$ catt scan
Scanning Chromecasts...
xxx.xxx.xxx.xxx - xxxxx - Hisense SmartTV 4K

After power cycling the device (hold down the power button), catt now seems to be working again. Scanning consistently finds the device.

from catt.

skorokithakis avatar skorokithakis commented on August 29, 2024

Seems like a problem with the device, if power-cycling fixes it...

from catt.

xiota avatar xiota commented on August 29, 2024

@skorokithakis Probably. Mentioned it so @diimpp and others who have connection problems can try ruling out glitches on the device itself. They're perpetually put in and out of sleep mode, and it seems a good ol' fashioned reboot is occasionally required.

Also, the error message Failed to determine cast type for host may indicate where to look for other problems.

from catt.

JrdnRgrs avatar JrdnRgrs commented on August 29, 2024

I am having similar issues as well. Here are some details about mine, i am running W11 for clarity.

I can run catt scan from my powershell console just fine, but when running in WSL or a docker container (with the net=host option) I just get Error: No devices found.. What is interesting though is that when I run the above mentioned curl command from WSL or the docker container, I can retrieve information about the device, so I know it is at least reachable...

What is very odd to me though is that when I first started trying to use catt, about a day or 2 ago, I had no issues running it in WSL or a docker container.

As far as I'm aware I did not update any local network settings, and havent changed anything at all within docker or WSL... so really not sure what is now causing me to not be able to scan for devices...

from catt.

ubeaut avatar ubeaut commented on August 29, 2024

Hi I am using version 0.12.10 and the scan sometimes doesn't show but after a minute or so it works again. It is very hit and miss.
Is there a command I can use to restart the catt process so it works consistently?
Other than that when it does work it works well.

from catt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.