Thank you so much Quinn!
My problem was I was calling my code from the .preparing state, rather than ready. Happy to know I was on the right track, and that it's SO much easier to get the peer IP than with CFStreams (something I also struggled with a while ago: https://stackoverflow.com/questions/55436951/how-can-i-get-the-remote-address-from-a-cfstream-in-ios)
Topic:
App & System Services
SubTopic:
Core OS
Tags: