Casting from Firefox to smart TV using fx_cast and Avahi

Asked by Vitor Braga

Hi,

I'm trying to cast an YouTube video from Firefox to my LG webOS Smart TV. I've installed the fx_cast extension and bridge application:

https://github.com/hensm/fx_cast

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.

Running "avahi-bowse -ta":

vitor@vitor-Inspiron-5379:~$ avahi-browse -ta
+ wlp1s0 IPv6 WIFE_NAME _companion-link._tcp local
+ wlp1s0 IPv6 iPad _companion-link._tcp local
+ wlp1s0 IPv4 WIFE_NAME _companion-link._tcp local
+ wlp1s0 IPv4 iPad _companion-link._tcp local
+ wlp1s0 IPv4 googlerpc _googlerpc._tcp local
+ wlp1s0 IPv4 Google-Nest-Mini-72425af30279be458f4bafe93af399fb _googlecast._tcp local
+ wlp1s0 IPv4 72425af3-0279-be45-8f4b-afe93af399fb _googlezone._tcp local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] PDL Printer local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] PDL Printer local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] Internet Printer local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] Internet Printer local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] _scanner._tcp local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] _scanner._tcp local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] _uscan._tcp local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] _uscan._tcp local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] Secure Internet Printer local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] Secure Internet Printer local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] _uscans._tcp local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] _uscans._tcp local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] Web Site local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] _http-alt._tcp local
+ wlp1s0 IPv4 HP DeskJet 2600 series [2C33E6] _privet._tcp local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] Web Site local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] _http-alt._tcp local
+ wlp1s0 IPv6 HP DeskJet 2600 series [2C33E6] _privet._tcp local

The devices shown are my wife's iPad, a Google Nest Mini and my HP wifi printer. The TV is nowhere to be shown. It's, however, connected to the network and it's visible from Chrome on MacOS.

Any tips to debug on why avahi wouldn't find a specific device?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vitor Braga (vitorpybraga) said :
#1

Running nmap -sV -p 1-65535 TV_IP:

vitor@vitor-Inspiron-5379:~/tmp/miraclecast/res$ sudo nmap -sV -p 1-65535 192.168.1.25
Starting Nmap 7.80 ( https://nmap.org ) at 2021-03-10 22:47 GMT
Nmap scan report for 192.168.1.25
Host is up (0.062s latency).
Not shown: 65524 closed ports
PORT STATE SERVICE VERSION
1291/tcp open upnp LG WebOS TV upnpd (model: UJ634V; WebOS 0.9; UPnP 1.0; DLNADOC 1.50)
1529/tcp open upnp LG WebOS upnpd (WebOS 1.5; UPnP 1.0)
1535/tcp open upnp LG WebOS upnpd (WebOS 4.1.0; UPnP 1.0)
1848/tcp open upnp Platinum unpnd 1.0.4.9 (arch: i686; UPnP 1.0; DLNADOC 1.50)
1918/tcp open upnp Platinum unpnd 1.0.4.9 (arch: i686; UPnP 1.0; DLNADOC 1.50)
3000/tcp open http LG smart TV http service
3001/tcp open ssl/http LG smart TV http service
9080/tcp open http Mongoose httpd
9998/tcp open http Google Chromecast httpd
18181/tcp open opsec-cvp?
36866/tcp open unknown
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port36866-TCP:V=7.80%I=7%D=3/10%Time=60494C8E%P=x86_64-pc-linux-gnu%r(G
SF:etRequest,52,"HTTP/1\.1\x20404\x20Not\x20Found\r\nDate:\x20Wed,\x2010\x
SF:20Mar\x202021\x2022:47:42\x20GMT\r\nConnection:\x20close\r\n\r\n")%r(Fo
SF:urOhFourRequest,52,"HTTP/1\.1\x20404\x20Not\x20Found\r\nDate:\x20Wed,\x
SF:2010\x20Mar\x202021\x2022:47:47\x20GMT\r\nConnection:\x20close\r\n\r\n"
SF:);
MAC Address: 04:4E:AF:66:85:7E (LG Innotek)
Service Info: OS: Linux; Device: media device; CPE: cpe:/h:lg:uj634v, cpe:/o:linux:linux_kernel

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 115.13 seconds

Seems to confirm that Chromecast should be working I think.

Revision history for this message
Vitor Braga (vitorpybraga) said :
#2

I can ping the TV:

vitor@vitor-Inspiron-5379:~/tmp/miraclecast/res$ ping 192.168.1.25
PING 192.168.1.25 (192.168.1.25) 56(84) bytes of data.
64 bytes from 192.168.1.25: icmp_seq=1 ttl=64 time=5.29 ms
64 bytes from 192.168.1.25: icmp_seq=2 ttl=64 time=4.91 ms
^C
--- 192.168.1.25 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.910/5.100/5.291/0.190 ms

avahi-resolve however fails:

vitor@vitor-Inspiron-5379:~/tmp/miraclecast/res$ avahi-resolve -v -a 192.168.1.25
Server version: avahi 0.7; Host name: vitor-Inspiron-5379.local
Failed to resolve address '192.168.1.25': Timeout reached

Adding the TV to /etc/hosts does make avahi-resolve works:

vitor@vitor-Inspiron-5379:~/tmp/miraclecast/res$ avahi-resolve -v -a 192.168.1.25
Server version: avahi 0.7; Host name: vitor-Inspiron-5379.local
192.168.1.25 lgwebos.local

But fx_cast still can't find the device (nor it shows up in avahi-browse, which is why I believe it's not showing up in fx_cast).

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Does it work OK from Google Chrome on the same Ubuntu install?

Revision history for this message
Vitor Braga (vitorpybraga) said :
#4

Yes, it does work from Chrome on the same Ubuntu machine:

https://imgur.com/tThuupb

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

OK then I suggest you contact the Git maintainer to see if they can help. You can use Chrome in the meantime as as stop gap. Maybe others can assist. I don't use Firefox myself.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Possibly this
https://linuxhint.com/stream_linux_to_tv/

There's an application you can use to cast local video or (as far as I can see) the whole desktop

Revision history for this message
aea s se (emeralse33) said :
#7

I even have constructed a local replica of libaom2.Zero.2, possibly update to two.1.0 soon, however recompiling ffmpeg proved to be quite tough for some motive, and I dread to think about gstreamer... As it's far I'm the usage of aomenc, blanketed with libaom. See more here https://www.bestpicktv.com/how-to-factory-reset-samsung-smart-tv/

Can you help with this problem?

Provide an answer of your own, or ask Vitor Braga for more information if necessary.

To post a message you must log in.