Description:Easily get your external IP Address from the command line from the fastest website offering this service.
If your network is dual stack, IPv4 and IPv6 you will by default receive your IPv6 address from us. If you do indeed have an IPv4 address and would like that, you can tell libcurl to resolve to IPv4 address by using the -4 flag. If instead you need IPv6 and you are getting only your IPv4 address, use the -6 flag.
curl -4 ifconfig.us
curl -6 ifconfig.us