title: How to change IP of system problematically in a Windows service or console app
body: <p>I'm writing a C# application and want to change the IP address of my system.</p>
  
  <p>I found this command</p>
  
  <pre><code>netsh interface ip set address name="Local Area Connection" static 192.168.1.191 255.255.255
  </code></pre>
  
  <p>But how can I do this in code?</p>