I stumbled across another option.
From the cisco IOS cli enter either of these two commands....
telent telnetmyip.com (can also access this via HTTP (80)
ssh sshmyip.com
Each one of these commands will return a tiny, easy to read, JSON formatted response with your public IP address info (IPv6 or IPv4)
1841#telnet telnetmyip.com
Translating "telnetmyip.com"...domain server (172.25.1.200) [OK]
Trying telnetmyip.com (18.217.148.211)... Open
{
"comment": "## Your IP Address is 24.129.199.65 (58050) ##",
"family": "ipv4",
"ip": "24.129.199.65",
"port": "58050",
"protocol": "telnet",
"version": "v1.0.0",
"website": "https://github.com/packetsar/checkmyip"
}
[Connection to telnetmyip.com closed by foreign host]
discovered this at packetpushers.net
http://packetpushers.net/telnetmyip/
wget ifconfig.me/ip
. The wget session does not seem to terminate. Although it did got the IP in the fileip
. – some user Aug 12 '16 at 19:38