9 lines
160 B
Bash
Executable File
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 ""
|
|
|