Finding the Ephemeral port range on iOS

On the macOS I find the port range by using the sysctlbyname() with the param of net.inet.ip.portrange.first and net.inet.ip.portrange.last which works. But on iOS/iPadOS I am getting "Operation Not permitted". Is there another way of doing this on iOS/iPadOS?

Is there another way of doing this on iOS/iPadOS?

Probably not.

What do you need this info for?

Share and Enjoy

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

Finding the Ephemeral port range on iOS
 
 
Q