C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,185 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have been looking for a way to use a C# app to release/renew IP with a button click.
So far many methods are not working and I get errors or told code isn't valid. I'm no longer sure what methods to use/classes etc. Any help would be appreciated.
Use Process.Start (with "cmd /C ipconfig /renew" for example)
(or others methods like WMI with RenewDHCPLease, IpRenewAddress , ...)