extip
A small Go package which gets your external IP address.
All of the following services must be down for extip to fail:
- http://ip.coder.com
- http://checkip.amazonaws.com
- http://icanhazip.com
- http://www.trackip.net/ip
- http://myexternalip.com/raw
- http://ipecho.net/plain
Services can be easily overrided.
Basic Usage
fmt.Printf("My ip is %v\n", extip.IP())Command line
$ extip
70.123.14.223
