devbobo / homebridge-lifx-lan

LiFx LAN platform plugin for Homebridge
MIT License
84 stars 27 forks source link

LIFX Client UDP error #9

Closed jbadnes closed 8 years ago

jbadnes commented 8 years ago

Cant wait to use this. When I install I get this error ?

Load homebridge-lifx-lan.LifxLan LIFX Client UDP error Trace: { [Error: bind EADDRINUSE 0.0.0.0:56700] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'bind', address: '0.0.0.0', port: 56700 } at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-lan/node_modules/node-lifx/lib/lifx/client.js:147:13) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at dgram.js:215:14 at nextTickCallbackWith3Args (node.js:453:9) at process._tickCallback (node.js:359:17) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:974:3

jbadnes commented 8 years ago

Looked like the port was taken for some reason. I cleared my cache and WOW its working. Fantastic plugin. Still testing but looks like its up and working now.

devbobo commented 8 years ago

ok, cool...can I close this issue ?

jbadnes commented 8 years ago

Yes thank you

On Sep 8, 2016, at 8:30 AM, David Parry notifications@github.com<mailto:notifications@github.com> wrote:

ok, cool...can I close this issue ?

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/devbobo/homebridge-lifx-lan/issues/9#issuecomment-245581780, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APm8F-ZczuyCyMd5i8YRmPi2yfbIFi7Zks5qn__PgaJpZM4J2fQj.

bentoscano commented 8 years ago

I'm also having this exact error, but find myself markedly less savvy than OP. Can anyone guide me on how I can clear this port to be able to use this plugin?

LIFX Client UDP error Trace: { [Error: bind EADDRINUSE 0.0.0.0:56700] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'bind', address: '0.0.0.0', port: 56700 } at Client.<anonymous> (/Users/bentoscano/.nvm/versions/node/v4.2.4/lib/node_modules/homebridge-lifx-lan/node_modules/node-lifx/lib/lifx/client.js:147:13) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at dgram.js:214:14 at doNTCallback3 (node.js:452:9) at process._tickCallback (node.js:358:17) at Function.Module.runMain (module.js:469:11) at startup (node.js:136:18) at node.js:963:3

dereitz commented 6 years ago

bentoscano - did you ever fix this? I'm having the same issue. Thanks!

bentoscano commented 6 years ago

dereitz - I remember trying a plethora of things and can't remember exactly how I fixed it, sorry about that! If I do recall, I'll reply here.

dereitz commented 6 years ago

Thanks, in my case, I believe that OpenHAB is already using that port. I'm just not sure how to change the port that LIFX uses or what side effects that will have.

fpg1503 commented 6 years ago

I had this issue because I was using the LIFX component, changing the homebridge default visibility to visiblie did the trick (no need to use this plugin). The LIFX component was already using the port 56700.