I have a chat application server running on a PC which has dynamic IP. nearly every hour it keeps changing.
how can i notify the users abt the changed IP?
In native code you can do this using NotifyIpInterfaceChange - not sure whether this is usable via P/Invoke, as it uses a callback. This supports both IPV6 and IPV4.
You would then need to act appropriately to notify the users.
Prior to Windows Vista, the equivalent (IPV4 only) is NotifyAddrChange .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.