if you're not behind a proxy
curl ipinfo.io
if through proxy
e.g. using -x --- that's a lowercase x
curl -x http://internet.proxy.com:8080 ipinfo.io
e.g. using --proxy
curl --proxy http://internet.proxy.com:8080 ipinfo.io
from > curl --help
-x, --proxy [PROTOCOL://]HOST[:PORT] Use proxy on given port
--proxy-anyauth Pick "any" proxy authentication method (H)
--proxy-basic Use Basic authentication on the proxy (H)
--proxy-digest Use Digest authentication on the proxy (H)
--proxy-negotiate Use Negotiate authentication on the proxy (H)
--proxy-ntlm Use NTLM authentication on the proxy (H)