I am looking to get UPnP device discovery, description done in Javascript - either in standalone browser environment or in NodeJS Towards that, I tried below two solutions but both did not work for me. Details -
1]NodeJS bases: https://www.npmjs.com/package/upnp-client After correcting few typos in the example app, and running it in node (My nodeJS is running under X-Ubuntu Virtual Machine inside Virtualbox) I get below errors on running the upnp-client example app
dgram.js:399 throw new errnoException(process._errno, 'addMembership'); ^ Error: addMembership EBADF at new errnoException (dgram.js:457:11)
NodeJS version: v0.10.25 Upnp client api: 0.0.1
2]Under Browser(Chrome/IE) https://www.npmjs.com/package/upnp-client None of them at the versions I have supported the navigator.getNetworkServices API which seems to be needed for this library
How can i get UPnP device discovery working in Javascript?
Any other solutions or pointers to resolve above errors/workarounds appreciated.