can not get External Ip Address Programatically

Hello

I want to get external ip address in iOS objective C but getting Error " The file “check_ip.cgi” couldn’t be opened ". I also tried library ALSystemUtilities but getting same error. Can any one help me ??

Thanks

Regards.

Why do you need this value? The correct value to use depends on what you intend to use it for. As a simple example, consider an iPhone that’s on your home Wi-Fi. Such a device probably has two valid external IP addresses, one from your home Wi-Fi NAT gateway and another from the carrier grade NAT on WWAN.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
can not get External Ip Address Programatically
 
 
Q