09-30-2008 03:08 AM
hi,
is there any function available to find the IP address of a system??
Thanks
Jay
09-30-2008 03:21 AM
Hi Jay,
Please take a look at the following Knowledge Base article:
Programmatically Obtain a Computer's IP Address Using LabVIEW
Please let me know if this contains the information you were looking for.
John Porter
AE
NI
09-30-2008 03:21 AM - edited 09-30-2008 03:21 AM
It is not clear what you mean by "a system".
If you want to get the IP address of the current computer, user "string to IP" with the input unwired. If you want it as a formatted string, convert it using "IP to string", with a TRUE wired to the "dot notation" input.
01-06-2011 04:33 AM
To get your IP Address details,
Just visit this site www.ip-details.com/ip-search
It has the best result about internet service provider,location, country and and also provides the IP details at free cost itself.......
01-06-2011 09:41 AM
I learn something from you every day. If I set dot notation to false it returns my fully qualified name with a period at the end. I have never seen a domain name formatted like that. Do you know why it does that?
01-06-2011 01:19 PM
Looks fine here. What is your OS? Are you on DHCP?
How about the DNS configuration (e.g. DNS suffix setting on the DNS tab of the advanced TCP/IP settings))?
01-17-2012 01:05 AM
Great post guys! I'd like to chime in on a question:
So if I have multiple NICs on my laptop (as most do nowadays, wired and wireless), I can used the method described to extract my multiple IPs. However, I don't have enough data to distinguish which IP is my wired LAN and my WLAN. Is there a programmatic way to solve this?
-John Wu
Riobotics Consulting
01-17-2012 08:38 AM
The above functions won't give you that level of detail. For that you need to look outside, such as calling a command-like program. On Windows, for example, you can use System Exec to call "ipconfig" and parse the text.
01-17-2012 10:50 AM
You could use .NET calls to get information about the network interfaces.
Modify the example below to get the NetworkInferface.Description instead of NetworkInferface.Name
https://decibel.ni.com/content/docs/DOC-1089
01-18-2012 11:05 AM
Thanks to you both, these are definitely great things to try.