I have searched everywhere on how to get the external ip address with no avail. I am able to successfully get the local ip address.
In short what i want to do to get the same ip address as when I go on whatip.com or whatismyipaddress.com. However, I do not want to make any calls to the websites, is there a built in way to get this?
Also, I want the external ipaddress if the user is connected to wifi.
However, I do not want to make any calls to the websites, is there a built in way to get this?
No. This is impossible on most pieces of hardware, including desktops and notebooks, let alone phones. Generally, you are behind some sort of NAT, which defines your "external ip address".