To avoid relying on external sources, I use expect, to telnet into my router and get the ip address of its public interface. Here's an example expect script.
http://serverfault.com/questions/89114/finding-the-public-ip...
http://serverfault.com/questions/89114/finding-the-public-ip...
No comments yet.