From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the IP address of my PC from LabVIEW?

I have an application that uses three Ethernet ports for redundant communication. I have a multiport Ethernet card in my PC with dedicated addresses that talk directly to Ethernet ports on my product. The customer has asked that the port addresses on the product and the PC be settable. My question is how do I change the IP addresses of the Ethernet ports on the PC using LabVIEW? If not LabVIEW, can anyone point me to a DLL I can call from LabVIEW to do the job?
0 Kudos
Message 1 of 4
(5,069 Views)
Try the code posted here. I haven't tried it in a while and it worked with NT and 2K but I think it works with XP.
Message 2 of 4
(5,064 Views)
Looks like that did the trick, thanks!! Smiley Wink
0 Kudos
Message 3 of 4
(5,047 Views)
Another possibility might be the registry access VIs. Haven't tried though.
0 Kudos
Message 4 of 4
(5,019 Views)