Check if IP is static or dynamic programmatically in a mobile device
Application Type
Mobile

I'm building an application that audits a number of information from the device that's using it and I need to check programmatically if the device's Ip Address is static or dynamic. Can anyone help with this? I need to monitor Static Ip changes when the device is offline and save it on the local storage

mvp_badge
MVP

Hi João,

I don't think that's technically possible? A devices IP address is assigned by a DHCP server, and whether that will serve the same IP all the time or not the device can't tell.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.