Re: Alexa says all devices are not responding
Posted: Sun Sep 29, 2019 7:56 am
autolog wrote:I have been experimenting, without success so far, to create a VLAN on the Indigo mac and then assign the Alexa-Hue bridge to that VLAN and for it to listen on port 80. I have had to modify the plugin code to enable this way of working. However, I have come across another problem which is that macOS won't let the plugin listen on port 80 unless it is running as a root user - it fails with a socket error 13 - permission denied. I have been struggling with the pfctl command to get the ports redirected but not making much progress at the moment.
Not sure why you would need a VLAN for this. Edit: Oh, nvm that. You would want the VLAN if you need port 80 for something else. What a pain.
As you found out, the problem is binding to port 80 as a non-privileged user. See if this helps:
https://apple.stackexchange.com/questio ... bind-to-it
Once you have that, then you need a dispatcher routine which gets the request, figures out which bridge device it needs to send it along to. Hopefully there's enough information in the request headers to figure that out. I don't use Alexa, so I've never looked at how the devices are differentiated.