dotfiles/bin/executable_externalip

9 lines
136 B
Text
Raw Normal View History

#!/usr/bin/env zsh
echo -n 'IPv4: '
curl -4 https://ip.w9r.de/getip.php
echo
echo -n 'IPv6: '
curl -6 https://ip.w9r.de/getip.php
echo