11
Vote

No way to know when a DHCP lease has expired, or will expire

description

Currently, the NetworkInterface class contains methods to enable DHCP, disable DHCP (by setting a static IP), release a DHCP lease, and renew a DHCP lease. There is no way, however, to obtain the duration of the lease so the application can renew the lease when it expires. This could be accomplished with a property on the NetworkInterface class (DhcpLeaseDuration, for example) or by having EnableDhcp() return a lease duration.

comments

auspoundy wrote Jun 27, 2012 at 10:13 AM

Another option is for the framework to implement transparent to the user the DCHP re-lease / halflife process.