X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4350a8e741bcb6157f19c6d09b4d3385428e85c5..e8ae4a469b8b5db19a27a2bf71bb04142a68a6f0:/bin/whatsmyip?ds=inline diff --git a/bin/whatsmyip b/bin/whatsmyip index 8f6cbc7..2d0d796 100755 --- a/bin/whatsmyip +++ b/bin/whatsmyip @@ -1,4 +1,8 @@ #!/bin/bash -# only works behind DD-WRT router -#ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr" -curl -s ifconfig.me/ip + +curl -4 -s ip.rmz.io && echo +ret4=$? +curl -6 -s ip.rmz.io && echo +ret6=$? + +exit $((ret4 && ret6))