From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,257 Views)
Solution
Accepted by 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://decibel.ni.com/content/docs/DOC-3917

 

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

 

 

Regards,

Tom L.
Message 2 of 4
(2,250 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,221 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,209 Views)