How to get the Mac address and IP address of the iOS device using the Swift programming
func getIFAddresses() -> [String] { var addresses = [String]() // Get list of all interfaces on the local machine: var ifaddr : UnsafeMutablePointer? guard getifaddrs(&ifaddr) == 0 else { return [] } guard let firstAddr = ifaddr else { return [] } // For each interface … for ptr in sequence(first: firstAddr, next: … Leer más