vishen / go-chromecast

cli for Google Chromecast, Home devices and Cast Groups
Apache License 2.0
853 stars 84 forks source link

Not finding chromecast #160

Open bonelifer opened 1 year ago

bonelifer commented 1 year ago

Xubuntu 22.04 go version go1.19 linux/amd64 latest version from releases: go-chromecast_0.3.1_linux_amd64.tar.gz

My Pixel 3xl is able to see and interface with the Chromecast with Google TV.

vishen commented 1 year ago

This sometimes happens when go-chromecast is looking on a different network interface than what the chromecast is connected to. Can you confirm that go-chromecast has access to the network interface that the chromecast network is on? If so, you can try passing through an --iface flag to help go-chromecast discover the chromecast.

bonelifer commented 1 year ago

go-chromecast ls --iface 192.168.1.0/24? or go-chromecast ls --iface wlp3s0? Not sure of the format needed,

vishen commented 1 year ago

$ go-chromecast ls --iface wlp3s0 is the correct format. Does that work for you?

bonelifer commented 1 year ago

No. It is the correct device from the ip a command

vishen commented 1 year ago

The other thing would be to check if you have any firewall rules setup on Xubuntu that might be dropping the traffic. go-chromecast uses mDNS to discover devices on the network. I don't have an ubuntu to try, but according to https://superuser.com/questions/1453910/linux-command-to-get-mdns-service-discovery-and-to-get-its-ip-address there is a tool to check for mDNS, go-chomrecast uses _googlecast._tcp to try and discover the IP address.

johnd0e commented 1 year ago

I have somewhat similar issue. The app does not see my "Chromecast with Google TV" device. But it sees my "Google Nest Mini" device ok.

I have tried to use https://github.com/home-assistant-libs/pychromecast, and it sees both my devices without problem.