Just gimme the IP!

Clint Byrum clint at ubuntu.com
Wed Jun 15 15:37:05 UTC 2011


Excerpts from Jordon Bedwell's message of Tue Jun 14 13:34:12 -0700 2011:
> On 6/14/2011 2:59 PM, Luke Faraone wrote:
> > We could just get an API key from whatismyip.com, or use whatismyip.org
> 
> Wouldn't it be much more viable to just create a quick script on a
> sub-domain ip.launchpad.net or ip.ubuntu.com or ip.canonical.com and
> then curl or wget it? EXP:
> 
> curl -s ip.envygeeks.com
> wget -q -O - ip.envygeeks.com
> 
> No added text, no need to grep, no need to sed, nothing but the IP. You
> can even have the script adjust the curl command per interface too
> making it so if you have multiple IP's you can get each one.
> 

Except that this would fail completely if you don't have access to
ip.envygeeks.com.



More information about the ubuntu-devel mailing list