Closed vitorpy closed 3 years ago
Are you sure your TV supports Chromecast? I wasn't aware LG made TVs with built-in Chromecast support, and there doesn't appear to be a Chromecast service running. The "Google Chromecast httpd" entry is a little weird, though.
This is the output from one of my Chromecast devices:
> nmap -sV -p 1-65535 192.168.1.227
Starting Nmap 7.91 ( https://nmap.org ) at 2021-03-11 00:38 GMT Standard Time
Nmap scan report for Chromecast.router.local (192.168.1.227)
Host is up (0.011s latency).
Not shown: 65528 closed ports
PORT STATE SERVICE VERSION
8008/tcp open http?
8009/tcp open ssl/ajp13?
8012/tcp open unknown
8443/tcp open ssl/https-alt?
9000/tcp open ssl/cslistener?
10001/tcp open ssl/scp-config?
10101/tcp open ssl/ezmeeting-2?
MAC Address: 14:C1:4E:5C:DB:73 (Google)
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 156.52 seconds
You could try testing service discovery from macOS to compare:
> dns-sd -B _googlecast._tcp
Browsing for _googlecast._tcp
Timestamp A/R Flags if Domain Service Type Instance Name
0:42:10.287 Add 2 10 local. _googlecast._tcp. Chromecast-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Am I sure? No. I assumed it did because I can stream to it from the YouTube app:
Or from Chrome on MacOS.
Maybe it's just DLNA and Chrome/YouTube can cast do a DLNA device as well? I'll check the MacOS output in the morning.
By the way, it also works from Chrome on the same machine (w/ Ubuntu):
I'll dig a bit and see if the device is only discoverable through UPnP. If it is, I'll see if I can try to extend your code to look for UPnP devices as well.
Oh yeah, that's a DIAL app. Chrome/YouTube supports that, but I haven't really looked at implementing it yet.
I can't get fx_cast to locate my TV. It does however works under Chrome on MacOS.
fx_cast seems to be configured correctly. However, I cannot see my LG as a device to cast to. I believe the problem is related to avahi.
avahi-browse does not locate the TV.
Running
avahi-bowse -ta
:The devices shown are my wife's iPad, a Google Nest Mini and my HP wifi printer. The TV is nowhere to be shown.
Running
nmap -sV -p 1-65535 TV_IP
:I'm not sure on how to debug from here. Any guidance on how to proceed would be appreciated.
Cross posted to launchpad.