From 549c88dc8d35a305670e7ee24d7a506789dd6481 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 15 Jun 2013 04:19:44 +0200 Subject: [PATCH] get the external ip from dd-wrt --- bin/whatsmyip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.48.1