Get your external IP address from command line.
$ myip
2001:db8::2
$ myip -4
192.0.2.2
$ myip -6
2001:db8::2
- This is the default method
stun.l.google.com:19302
is the default server- Connection over UDP only
myip --method STUN --server stun.l.google.com:19302
myip --method ip.sb
myip --method OpenDNS
-4
/-6
doesn't work
myip --method OpenDNS-API
Use go 1.11 or higher. Run build.sh
to build and collect your artifact in build
directory.
If this project is helpful to you, please consider buying me a coffee.
or PayPal