Everything is written in VS 2013 in C #. Actually a subject. It is necessary to change the ip of the local computer directly from the program, is there such a possibility? On the local machine, two network cards.

  • one
    A simple Process.Start call Process.Start the netsh command via Process.Start , passing the necessary arguments to it (adapter name, ip, mask, etc.). - kmv
  • Here's an example: stackoverflow.com/a/760611/4712334 - kmv
  • And there are no other options? - Darrio
  • the more complicated option is via WMI: codeproject.com/Articles/6975/… - kmv

1 answer 1

Have you tried to google?

So here a person gave stupidly all the necessary code that can change any network settings. DNS, Ip and more.

https://stackoverflow.com/questions/209779/how-can-you-change-network-settings-ip-address-dns-wins-host-name-with-code