ifconfig.co doesn't support querying IPv6 or IPv4 explicitly -- if you have IPv6, it will return the IPv6 address and not the IPv4 address, which sometimes is not what you want. Try this out: curl http://rkeene.org/whatismyip; curl http://ipv4.rkeene.org/whatismyip; curl http://ipv6.rkeene.org/whatismyip
Two things:
curl http://rkeene.org/whatismyip
;curl http://ipv4.rkeene.org/whatismyip
;curl http://ipv6.rkeene.org/whatismyip
Can't you use
curl -4
orcurl -6
to query v4 or v6?