0

Is it possible to use mDNS lookups in AngularJS applications?

More specifically I'm making an app through the Ionic framework (which run upon AngularJS). And I want it to be able to connect to an embedded device on the network.

For example:

 $http.get("mydevice.local", .....);
Jolle
  • 1,336
  • 5
  • 24
  • 36

1 Answers1

0

I've used node mDNS on my Linux machine. But it has parts written in c++.

https://github.com/agnat/node_mdns

Chrome has had an mDNS API since Chrome 31.

https://developer.chrome.com/apps/mdns

georgeawg
  • 48,608
  • 13
  • 72
  • 95
  • Looks like it creates a mDNS server? can it also just translate an URL (mydevice.local for example) to an IP address?.. ie. serve as mDNS client? :) – Jolle Dec 01 '15 at 14:22
  • I have used it both as a server and as a client of mDNS. – georgeawg Dec 01 '15 at 17:43
  • Now that I think of it, node_mdns has parts written on c++. There is the Chrome mDNS API for extensions. – georgeawg Dec 01 '15 at 17:57