I’m working with an API that requires the machine’s external IP. I have come understand that I can’t do this without relying on an external server.
I’ve used whatismyip.com in the past:
wget -q -O - http://whatismyip.com/automation/n09230945.asp
What are some other services for checking the external IP of a machine? Since I’m concerned about a single point of failure, I’d like to have a few options to which I can fail over.
Now, I didn’t write that myself, just doing some research for you.
http://www.geekology.co.za/blog/2009/04/checking-your-internal-and-external-ip-addresses-on-a-unix-machine/
Or