Files
shell-scripts/4-public-ip.sh
T
2021-07-23 17:27:31 +00:00

9 lines
160 B
Bash
Executable File

#!/bin/bash
# does not always work, when you have an IPv6 connection
#dig +short A myip.opendns.com @resolver1.opendns.com
curl https://ipinfo.io/ip
echo ""