10-15-2018 09:28 AM
If you have the name of a service, you can open up a TCP connection to it from a remote target. The NI Service Locator can resolve the name into the port to connect on.
Is there a way to query the remote target for a list of all services in the NI Service Locator?
In many cases I have more than one LabVIEW application running on a computer. Each will start up a listener with a service name. I'd like to be able to query the NI Service Locator to see what applications are running. I don't want to rely on knowing the service names because the number of apps and their service names changes from system to system.
Solved! Go to Solution.
10-15-2018 02:26 PM - edited 10-15-2018 02:28 PM
http://<IP-Address>:3580/dumpinfo
For example, sue http://localhost:3580/dumpinfo to get the list of active services on your local computer or use http://192.168.1.100:3580/dumpinfo to get the list off the computer with the IP address of 192.168.1.100. If you do this from within a VI will will need to write a parser that can parse the HTML response.
10-15-2018 05:23 PM
Excellent, that works. Thanks. Now, parsing that return will be fun...