A simple service for looking up your IP address. This is the code that powers http://ifconfig.co
# The usual suspects $ curl ifconfig.co 127.0.0.1 $ wget -O - ifconfig.co 127.0.0.1 # BSD fetch $ fetch -o - ifconfig.co 127.0.0.1
Pass the appropriate flag (usually -4 and -6) to your tool to switch between IPv4 and IPv6 lookup.
$ gofmt -tabs=false -tabwidth=4