This Gist provide the function to retrieve the local IP address of the device when connected to the wifi.
No permission is required from the user to access the information. It uses the getifaddrs method that is not directly part of the public iOS API but it's still perfectly fine to use it and allowed by Apple.