LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining the IP Address of a NIC

Hi,

 

I want to communicate to an Ether I/O 24 device over UDP.  I am using a DHCP server to automatically give me an IP address for it.  How can I get the IP address of this device in LabVIEW 8.6?  I have done some searching and I can't seem to find exaclty what I want.  The VB .exe that came with the device has a function called scan for modules and it returns the IP address with the MAC address.  The PC I am using has two NICs and the module is on subnet 255.255.0.0

 

Any help appreciated.

0 Kudos
Message 1 of 3
(2,774 Views)

This is usually done by proprietary UDP broadcasts to the devices which recognize the specific packet format and answer with a packet that specifies their own IP address and other information. There is no generic way to find out the IP address of a network device.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(2,747 Views)

@marty H wrote:

The PC I am using has two NICs and the module is on subnet 255.255.0.0


I assume this is the subnet mask, not the subnet address.

 

I would use wireshark and do a packet capture when running the VB.exe. See if you can duplicate the communication in LabVIEW later.

Message 3 of 3
(2,736 Views)