I'm building an application for iOS and Android in angular/cordova where I want to find the IP and port of a certain device on my local network (dynamically), to be able to send post requests and talk to it through its API.
The API says that I could use SSDP
or DNS-SD
to discover the device. I've looked up these two helpers that could help me get a list of all connected devices on the network:
But as far as I'm concerned node is a server-side framework, I can't just "require" the node modules in my app. Whats the most logical way to go here? I simply want to get a list of all connected devices on my network, is this hard to achieve?