取消
显示结果 
搜索替代 
您的意思是: 

programatically get a PC's IP address

已解决!
转到解答

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 项奖励
1 条消息(共 4 条)
2,769 次查看
解答
已被主题作者 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.
2 条消息(共 4 条)
2,762 次查看

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 项奖励
3 条消息(共 4 条)
2,733 次查看

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

 

Tom L.
0 项奖励
4 条消息(共 4 条)
2,721 次查看