Convert a Hostname to an IP Address in LabVIEW
Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Base Development System, LabVIEW Development Systems>>LabVIEW Professional Development System
Is it possible to programmatically convert a hostname to an IP address in LabVIEW, and if so, how do I do it?
A hostname can easily be converted to an IP address in LabVIEW by using two String to IP VIs in series.
The resulting output on the IP to String VI is a string containing the IP address of the original hostname. The finished code is illustrated below:
KnowledgeBase 3B6BTU4B: Return IP Address Instead of Machine Name in TCP Listen.vi and/or TCP Wait on Listener.vi
KnowledgeBase 4A7G1N97: Programmatically Obtain a Computer's IP Address Using LabVIEW or LabWindows/CVI
Hostname to IP.vi
Report Date: 10/24/2004
Last Updated: 09/05/2017
Document ID: 3ENE8DL2