Solved chromecast / multicast / bhyve

My chromecast device is unable to be seen by others wifi clients. I am running hostapd in Alpine Linux in vm-bhyve. I was thinking that perhaps it was something to do with pf, but after more consideration, I don't (even with pf disabled, it doesn't make a difference).


Tcpdump shows the mdns and ssdp traffic being sent to it, but no replies. Pinging the chromecast from a mobile device doesn't work, but a wired device does.


I have tried hostapd with both ap_isolate=0 and 1, but that didn't change anything.

I am thinking that hostapd is still isolating clients and this traffic isn't being passed as a result. I don't think it is related to pf, but am open to any ideas.

EDIT:
I attempted to ping the chromecast from my mobile device and it doesn't respond. If I ping the chromecast from the router or my workstation, it works.
 
Last edited:
I sorted this out, it wasn't at all related to pf, it was something with ap_isolate and hairpin mode:

The fix for me in my case was to put this in my periodic script (to ensure it is set):
Code:
echo 1 > /sys/devices/pci0000:00/0000:00:06.0/net/wlan0/brport/hairpin_mode
 
I had to enable hairpin mode for both interfaces and then the network issues seem to disappear. The chromecast has worked for the past day.
 
Back
Top