I want to get the Local Host Ip address on iPhone in swift ?
I have reference the How to get Ip address in swift , It needs to #include <ifaddrs.h> and the link mention the getifaddrs() is defined in <ifaddrs.h>, which is not included by default. Therefore you have to create a bridging header and add #include <ifaddrs.h>
What is the create the bridging header mean here ?
How to create the bridging header?
Is it mean , copy the ifaddrs.h file to my swift project ?
or does there has other way to get the Local Host Ip address on iPhone in swift?
Thanks in advance.
 
     
    