I have checked almost all Stackoverflow answers and follow them all. But I every time get the Default Gateway IP instead of External IP
I don't want to use ThirdParty APIs who list back IP Address in Response. I want to use only Swift or Objective-C code to retrieve External IP.
Default Gateway IP => 100.45.150.231
External IP => 106.72.187.241
Any help would be appreciated.