My requirement is that I need to get a listing of all IP addresses related to all community interfaces on these Apple platforms – iOS, iPadOS, tvOS, watchOS.
One of many approaches which can work for all of the platforms is utilizing
I need to know whether or not there exists a local method in both Swift or Goal-C which solves this drawback.
Official Apple documentation for
getifaddrs API is saved within the archive part. Subsequently, I’m not certain whether or not it’s a good method to go forward with or not. And I need to write the code in Excessive-Stage language so far as attainable. So need to keep away from utilizing getifaddrs API instantly so far as attainable.
I went by means of the courses/structs corresponding to
NWPathMonitor. However was not ready to determine any API which can serve my function.