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