From: Samir Benmendil Date: Sat, 15 Jun 2013 02:19:44 +0000 (+0200) Subject: get the external ip from dd-wrt X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/549c88dc8d35a305670e7ee24d7a506789dd6481?ds=sidebyside get the external ip from dd-wrt --- diff --git a/bin/whatsmyip b/bin/whatsmyip index ed417b2..a441b43 100755 --- a/bin/whatsmyip +++ b/bin/whatsmyip @@ -1,2 +1,3 @@ #!/bin/bash -wget http://automation.whatismyip.com/n09230945.asp -qO - +# only works behind DD-WRT router +ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr"