ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically get a PC's IP address

Solved!
Go to solution

is there some property node or system query that would return a string of the host PC's IP Address?

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 4
(2,835 Views)
Solution
Accepted by topic author lmd2

Hello Lawrence,

 

There are a few ways to do this, but the simplest is probably something like this:

 

Community Example: Find out your computer's IP Address and Computer Name

https://forums.ni.com/t5/Example-Code/Find-out-your-computer-s-IP-Address-and-Computer-Name/ta-p/352...

 

This could also be accomplished with System Exec/command prompt  queries, or the Sysconfig API

 

 

Regards,

Tom L.
Message 2 of 4
(2,828 Views)

thanks, figured there was a function somewhere, finding the right palette could be tough; you've been very helpful.

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 4
(2,799 Views)

Glad to help- it's definitely true that finding the right function for the job is half the battle.

 

Tom L.
0 Kudos
Message 4 of 4
(2,787 Views)