tags:

views:

47

answers:

2

Hi all,

Does anyone know a tool or better an API to track my dynamic IP address?

Thanks so much for your help.

Yours, Ling

+1  A: 

You are probably looking for a service like dyndns.

Femaref
+1  A: 

If you use managed API, you can use NotifyIpInterfaceChange (see http://msdn.microsoft.com/en-us/library/aa814450%28VS.85%29.aspx) or NotifyAddrChange (see http://msdn.microsoft.com/en-us/library/aa366329%28VS.85%29.aspx) API to monitor changes of IP addresses a local computer.

Oleg
Hi Oleg, I have not much experience in doing this one. But Thanks very much for your suggestions.
LingAi
It is VERY easy. Just call `NotifyAddrChange (NULL, NULL)` inside thread. The function will wait till a cahnge in IP. Then call `GetAdaptersInfo` or `GetAdaptersAddresses` to give all current IPs and much more. If you want to know what is changed you have to keep the previous values of all IPs. You can do this in a `while(TRUE)` loop inside of one working thread.
Oleg
Thanks so much for your kind help,. I will have a try, and let you know the result.
LingAi