updated network.sh

pull/2/head
Hari Sekhon 5 years ago
parent 07c7759bdc
commit c1f7cd8040

@ -154,6 +154,12 @@ myip(){
ifconfig | grep 'inet[[:space:]]' | grep -v 127.0.0.1 | awk '{print $2}'
}
ifconfigco(){
curl ifconfig.co
# something else to consider with jq for lat/long coordinates, ASN, country etc
#curl ifconfig.co/json
}
ipify(){
curl http://api.ipify.org/
echo

Loading…
Cancel
Save