How to get IPhone's Public IP Address without using a third party url
问题 For my project, i need to get the IPhone's Public IP address, there are so many examples available, which show public IP address by using external / third party URL. I just want to know how to extract IPhones's IP Address without help of using another url. Note :- I used This one but shows only the local IP address , i need public IP address func getIPAddress() -> [String] { var addresses = [String]() // Get list of all interfaces on the local machine: var ifaddr : UnsafeMutablePointer