WAN-IP of router

Yu Meng Chong chongym at cymulacrum.net
Fri Aug 6 06:32:04 PDT 2010


> Is there any sensible, script-friendly, way of finding my router's
> external (dynamical) IP? It looks surprisingly difficult, judging by
> Google results...
> The thing is an ASUS RT-N16. I intend to install dd-wrt, eventually,
> but for the time being it has the original software, which appears to
> be complete crap, BTW.

Hi Jorge, 

Actually, I think DDNS is probably the best solution. Apparently, the router supports that in the web interface (http://www.smallnetbuilder.com/wireless/wireless-reviews/31058-asus-rt-n16-gigabit-n-router-reviewed?start=2). Sign up for an account on DynDNS and setup the router to talk to DynDNS and then you only need to use dig or nslookup to find the public IP of your router.

Hope this helps!

pascal chong
 



More information about the Linux-users mailing list