LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hOW TO FIND THE IP address of a system

hi,

   is there any function available to find the IP address of a system??

 

Thanks

Jay

0 Kudos
Message 1 of 13
(6,530 Views)

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

------
John.P | Certified LabVIEW Architect | NI Alliance Member
0 Kudos
Message 2 of 13
(6,522 Views)

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.

 

Message Edited by altenbach on 09-30-2008 01:21 AM
Message 3 of 13
(6,521 Views)

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.......

0 Kudos
Message 4 of 13
(5,953 Views)

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?

=====================
LabVIEW 2012


0 Kudos
Message 5 of 13
(5,926 Views)

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))?

0 Kudos
Message 6 of 13
(5,894 Views)

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

Message 7 of 13
(5,510 Views)

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.

Message 8 of 13
(5,487 Views)

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

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 9 of 13
(5,473 Views)

Thanks to you both, these are definitely great things to try.

0 Kudos
Message 10 of 13
(5,435 Views)