Wednesday, December 30, 2009

Code for finding out external ip address on linux.

You need to have gxmessage installed.

#!/bin/bash
IP=`wget www.whatismyip.com/automation/n09230945.asp -O - -o /dev/null`
gxmessage -title 'External IP address' "Your external IP address is: $IP"

exit 0