dsandor / fauxmojs

Fake WeMo device ported to NodeJS. Allows Alexa (Amazon Echo) to make api calls.
56 stars 22 forks source link

Usage on multi interface devices #6

Closed NorthernMan54 closed 6 years ago

NorthernMan54 commented 7 years ago

I borrowed your discoveryService.js for some work I was doing to add Alexa to homebridge, and found that it didn't work on one of my machines with dual interfaces. And to make it work I had to make a minor change, and specify which interface to use. The change was this.

PS It worked on other single interface machines as well

var ip = require('ip');

. . .

udpServer.addMembership('239.255.255.250', ip.address());