PeterLarsen
asked on
Detect IP number change
Hi Experts,
Is there a way to detect if windows change its IP addrerss ??
eg.
ipconfig /relaese
ipconfig /renew
If the IP address is obtained from a DHCP server the server may deliver a different address. How do i detect if this happen ??
Something like this : procedure WmSettingChange(var Msg : TWmSettingChange); message WM_SETTINGCHANGE; ??
Regards
Peter
Is there a way to detect if windows change its IP addrerss ??
eg.
ipconfig /relaese
ipconfig /renew
If the IP address is obtained from a DHCP server the server may deliver a different address. How do i detect if this happen ??
Something like this : procedure WmSettingChange(var Msg : TWmSettingChange); message WM_SETTINGCHANGE; ??
Regards
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That's the method I use in some of my utilities. Granted I didn't search every inch of the internet, but all the sources I found indicated that it was the only way to do it.
Don't know how to get the DNS servers. Try asking that question in a new thread.
Geoff M.
Geoff M.
ASKER
I dont have time to search the entire net, so i will simply poll for changes - as suggested by Geoff. :-)
About DNS lookup - i have tried that but with no success (there are no simple answer to that) :-(
Kind Regards
Peter
About DNS lookup - i have tried that but with no success (there are no simple answer to that) :-(
Kind Regards
Peter
ASKER
There must be a better way to do this.
btw. Do you know how to get the DNS entrys ?
Kind Regards
Peter