Aietes / node-red-contrib-harmony

Node-RED integration for Harmony hub
MIT License
15 stars 18 forks source link

Port 5000 in use #19

Closed bakman2 closed 6 years ago

bakman2 commented 6 years ago

I am running node-red (docker) on a synology which uses port 5000 for its webinterface, when trying to add a harmony hub, node-red crashes. I've changed the source code from 5002-6000 which works. A smaller/less exotic range could avoid this ?

supagold commented 6 years ago

Same here. My hubs have assigned IPs, so adding them manually by IP worked, but it would be nice if we could skip port 5000.

Aietes commented 6 years ago

Actually, the extension does scan for a free port using netstat, and not use a port that is already in use. It doesn't matter much in docker though, as port detection doesn't work anyway, as broadcasting doesn't work in containers. I'll adjust the starting port to 5002, to avoid the crash.

Aietes commented 6 years ago

To clarify, the extension works in a docker container, I use it in docker myself, but the IP detection of a hub will not work, you'll need to enter the IP manually.

Aietes commented 6 years ago

Fixed in 1.2.6