Comment on Pretty IP Address lookupComments−dave1010uk15yPersonally, I much prefer the design of http://ip.appspot.com/−Dejital15yAnd for the sake of convenience, alias the following to something simple like "ip": curl -L -s --max-time 10 http://ip.appspot.com | egrep -o -m 1 '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'−soult15yWhat do you need the grep for?−getsat15yProbably so you know that the output you received is definitely an IP if egrep returns 0. The script on the server could fail or return unexpected non-IP output.−epochwolf15yAnother one: http://icanhazip.com/ With instructions: http://rackerhacker.com/icanhazip-com-faq/
Comments
Personally, I much prefer the design of http://ip.appspot.com/
And for the sake of convenience, alias the following to something simple like "ip":
What do you need the grep for?
Probably so you know that the output you received is definitely an IP if egrep returns 0. The script on the server could fail or return unexpected non-IP output.
Another one: http://icanhazip.com/ With instructions: http://rackerhacker.com/icanhazip-com-faq/