Jump to content

Setting the IP address of a PC


Recommended Posts

Windows?

There are probably several options: .Net, ActiveX, Windows API and command line tool

Personally I would go for the comamnd line tool or Windows API aproach, but the command line tool is the easier to explain.

To start a command line tool you use the System Exec VI in LabVIEW and pass it a string "cmd <command>"

The command line tool you want to use for this would be "netsh"

netsh interface ip set address "Local Area Connection" static 192.168.0.1 255.255.255.0

This would set the IP address of the network adapter "Local Area Connection" to static IP 192.168.0.1 with a subnet mask of 255..255.255.0

netsh has many more options and has an involved command menu structure, but you can find lots of information on the net how to use it.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.