
Explanation:
The IpReleaseAddress and IpRenewAddress functions are used to release and renew the current Dynamic Host Configuration Protocol (DHCP) lease. The IpReleaseAddress function releases an IPv4 address previously obtained through DHCP. The IpRenewAddress function renews a lease on an IPv4 address previously obtained through DHCP. It is common to use these two functions together, first releasing the lease with a call to IpReleaseAddress, and then renewing the lease with a call to the IpRenewAddress function.
When a DHCP client has previously obtained a DHCP lease and IpReleaseAddress is not called before the IpRenewAddress function, the DHCP client request is sent to the DHCP server that issued the initial DHCP lease. This DHCP server may not available or the DHCP request may fail.
When a host has previously obtained a DHCP lease and IpReleaseAddress is called before the IpRenewAddress function, the DHCP client first releases the IP address obtained and sends a DHCP client request for a response from any available DHCP server.
https://docs.microsoft.com/en-us/windows/desktop/IpHlp/managing-dhcp-leases-using- ipreleaseaddress-and-iprenewaddress