Archive

Archive for March, 2013

What’s your (my) (external) IP address?

Until IPv6 will have conquered the world (and maybe neither that time) DSL will continue to operate with dynamic IP address. I have the usual home server behind my home router and sometimes I need to access remotely. What’s my home router’s external IP?

Until now I used a script in my server that uploads via ftp the ip on this site, an easy supybot plugin I wrote to ask my IRC bot the IP, or used one of my remote access plugins and I stopped sending the IP via mail (too much fighting with Gmail spam filters).

My friend Riccardo Catto had the same problem and asked me to write together a simple plugin that fetchs the external IP from one of the many sites that provide that kind of service. A bit of libpurle magic and we came out with this ‘What’s my IP’ plugin. I use it with finch in my home server and every time I need to know my external IP I just write ‘ip’ in a chat with finch buddy and it answer with something like:

Current IP Address: X.X.X.X

…and I kiss the monitor to thanks it.

Easy but somewhat useful :)