GioF71 / airconnect-docker

Easily run AirConnect (both UPnP and Cast modes) with docker
MIT License
3 stars 1 forks source link

apple mac to google nest #5

Open m-a-r-o-u opened 2 months ago

m-a-r-o-u commented 2 months ago

Hi, container runs. but devices do not show up. container logs look like:

airconnect-cast | Ensuring user with uid:[1000] gid:[1000] exists ... airconnect-cast | Group with gid [1000] does not exist, creating... airconnect-cast | Group [airc] with gid [1000] created. airconnect-cast | User with uid [1000] does not exist, creating... airconnect-cast | User [airc] with uid [1000] created. airconnect-cast | Home directory [/home/airc] not found, creating. airconnect-cast | . done. airconnect-cast | Using AirConnect [cast] version [1.8.3] airconnect-cast | Configuration file not found, creating reference configuration file ... airconnect-cast | Command Line (config file creation): [/app/bin/aircast-linux -i /config/config.xml] airconnect-cast | [20:24:47.531] main:952 Starting aircast version: v1.8.3 (Feb 1 2024 @ 01:10:52) airconnect-cast | [20:24:47.531] main:959 no config file, using defaults airconnect-cast | [20:24:47.531] Start:709 Binding to 192.168.65.3 [eth0] with mask 0xffffff00 airconnect-cast | [20:24:47.535] Start:735 Starting pico HTTP server on port 61495 airconnect-cast | [20:24:47.535] mDNSsearchCallback:561 Updating configuration /config/config.xml airconnect-cast | Configuration file created. airconnect-cast | NETWORK_SELECT= airconnect-cast | ENABLE_AUTO_NETWORK=[] airconnect-cast | Automatically setting network ... airconnect-cast | Automatically setting network [Done] airconnect-cast | Command Line: [/app/bin/aircast-linux -x /config/config.xml -Z -b 192.168.65.3] airconnect-cast | [20:25:09.228] main:952 Starting aircast version: v1.8.3 (Feb 1 2024 @ 01:10:52) airconnect-cast | [20:25:09.229] Start:709 Binding to 192.168.65.3 [eth0] with mask 0xffffff00 airconnect-cast | [20:25:09.233] Start:735 Starting pico HTTP server on port 61953

what am I missing?

GioF71 commented 2 months ago

Hello, is the google nest a chromecast compatible device? I thought it could be used as a way to control those cast devices, and that it was not a chromecast on its own. In any case, are the cast devices in your house connected to the 192.168.65.0 network, where airconnect is running? I might need a little more information about your setup. Also post the compose file, although from the output I don't believe there might be anything wrong.

GioF71 commented 2 months ago

uhm, are you running the container on a mac using docker desktop? if so, I'm afraid that the host networking cannot work. It might be better to just run the binary!

m-a-r-o-u commented 2 months ago

Ok got it, Docker on Windows and MacOS runs in virutal machines and has no direct access to the host network stack in "Host Mode". Didn't know that. thanks

GioF71 commented 2 months ago

Hello, yes that is a limitation of docker desktop. But you can still:

a) download the latest binaries here b) take note of the command line arguments from the container logs c) run the appropriate macos version of the binary with those arguments

when you're ok, you can automate the startup process, see here

GioF71 commented 2 months ago

Hello, looks like the latest version of docker desktop supports host networking, see here. I have not personally tried, would you like to try and report back? Thank you