Can I get the IP address for a NSURLSession?

I'm trying to write a libcurl wrapper using the NSURL* interfaces. (Why? Because we're running into some problems with libcurl and I'd rather not rewrite all of the C++ code, so I thought I'd try wrapping a subset around NSURLSession et al.)

One of the things we want to get is the IP address of the remote side (for both GET and POST). I can possibly live without this, but it's very useful for debug and performance information.

Answered by DTS Engineer in 741013022

Check out the various properties under the Accessing Transaction Characteristics heading in the URLSessionTaskTransactionMetrics docs.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Check out the various properties under the Accessing Transaction Characteristics heading in the URLSessionTaskTransactionMetrics docs.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Ah ha! 😄

Can I get the IP address for a NSURLSession?
 
 
Q