02-26-2006 10:04 PM
02-26-2006 11:25 PM
Under the Communication palette, under TCP, there are two functions you need to get this info': 'String to IP' and 'IP to String.'
1. Drop the String to IP function on the diagram.
2. Do not wire any input to it.
3. Take its Output and wire it to the 'net address' input of the 'IP to String'
5. Display the Output of the 'IP to String'
Depenging on the True/False input to the 'IP to String' function, you get the machine name versus IP address.
See attachemnt... guess it's easier than explaining 🙂
Hope this helps.
-Khalid
02-26-2006 11:48 PM
Dear Khalid
Thank you Very much!
That's works so perfect and convenient method, before that, I get computer name and IP through call Win API.
Thanks!
11-26-2015 04:00 AM
Dear sir,
If my PC having more than one IP address, how to get all IP addresses.
Please let me know.
Regards,
S Nagaraju
11-26-2015 05:18 AM
Right-click the "String to IP" function and select "Multiple Output". Then use the "IP to String" in a for loop.
11-27-2015 12:45 AM
Thank you very much.
06-23-2017 08:29 AM
Hi, how can i get, with certainly, only the Ethernet ip?...i wont to exlude the possibility to have the problem of getting the wlan ip.
06-23-2017 10:13 AM
06-23-2017 10:36 AM - edited 06-23-2017 10:38 AM
I've tryed this, the first time i was connected to the wlan, the second time i've moved to the ethernet and this solution didn't refreshed the ip returned.I had to wait for about 5 minuts to see the correct ip.
06-23-2017 10:48 AM
Well you could always run ipconfig using the systemexec.vi and parse the output for your IP address.