LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine IP address

Hi

 

How can i determine the IP adresses/names of all the computers on a network when i act as

 

1. SERVER

2. CLIENT

 

 

Somil Gautam
Think Weird
0 Kudos
Message 1 of 7
(3,568 Views)

Hi there

 

Under MS Windows try the "NET VIEW" command line.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 7
(3,563 Views)

Thanks for the reply.

 

I am sorry, i just forgot to mention that i wanted to determine the IP addresses in LabVIEW. I can find out my own IP address but how can i determine the IP address of other client computers on a network as a client and server?

Somil Gautam
Think Weird
0 Kudos
Message 3 of 7
(3,558 Views)

Use system exec.vi in LabVIEW and give NET VIEW as command(as Chrisger mentioned).

 

Hope this helps?

Mathan

0 Kudos
Message 4 of 7
(3,545 Views)
well, try the "NET VIEW" command on the command line. This returns the names of all systems in your network. take a look at the "System Exec.vi" to call a command line from LabVIEW. Then use the "String To IP Function" to get the IP of the systems from their name. 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 5 of 7
(3,544 Views)

HI.

 

This method is working. i am getting the names. But i am not getting the IP addresses.

Have a look at the code 

Somil Gautam
Think Weird
0 Kudos
Message 6 of 7
(3,530 Views)
Once you have the list of names, you can ping each computer by name and parse out the IP address from that.  You'll want to adjust the ping parameters so it timesout relatively quickly if needed, and doesn't ping too many times.  Otherwise pinging each computer will take 5-10 seconds just to get the IP address.
Message 7 of 7
(3,501 Views)