]> git.rmz.io Git - dotfiles.git/commitdiff
use ifconfig.me to get external IP
authorSamir Benmendil <samir.benmendil@gmail.com>
Fri, 19 Jul 2013 23:21:25 +0000 (01:21 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Fri, 19 Jul 2013 23:23:45 +0000 (01:23 +0200)
bin/whatsmyip

index a441b43edd57b5356cf4ef11f87c2ae17d1b4aeb..4b6d0800bb0df96c898751002118816e9b2abe7a 100755 (executable)
@@ -1,3 +1,4 @@
 #!/bin/bash
 # only works behind DD-WRT router
-ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr"
+#ssh root@192.168.1.3 -p 2222 -q "nvram get wan_ipaddr"
+curl ifconfig.me/ip