Google now tells you your IP when you ask it in search
google.com
google.com
Also, it's interesting to compare this with, say, Yahoo's approach. Yahoo would have put an "IP" widget and a "weather" widget on their portal homepage. Google waits until the user searches for the info before giving it to them - which keeps their homepage clean and more importantly keeps their message strong "we do search well", while Yahoo's always seemed to be "we do a whole bunch of stuff, some of which you may need". I know Google/Yahoo comparisons aren't really du jour, but still it's interesting.
less typing and a much cleaner interface.
I await the day I can anagram via the search bar.
This is the problem with the giant company stepping into new areas, it often leaves destruction in its wake.
Would be cool to get both somehow.
Or just http://ifconfig.me/
-molo
Both Google and Apple (and most other companies) are smart enough to see that if a simple feature is heavily used and the experience of using it can be improved for their users, they may want to make it a "native" part of their products. Let's face it, this is a better experience for that search, and you can still go to the indie sites if what you need isn't covered by it.
Any of the bigger ones could spring off into an ISP review site.
Anyone want to take a stab at this for google's result page?
curl --silent 'http://www.google.com/search?q=what+is+my+ip' | sed 's/.*Client IP address: //;s/).*//;q'
Google responds with HTTP error 403 (Forbidden), but it just so happens the client IP address is in the error page. curl icanhazip.com http://myip.dnsomatic.com
http://whatismyip.org #!/bin/sh
# example from `who - u`:
#nick pts/0 2011-07-20 20:44 . 7856 (xxxxxxx.xxxxxxxx.internode.on.net)
who -u | awk 'BEGIN {FS="[p.]"} /internode/ {print gensub("-",".","g",$6); exit}'
You might need to play around with gensub(...). Sometime `who` reports the IP as xxx-xxx-xxx-xxx and sometimes as xxx.xxx.xxx.xxx wget -Ufoo -qO- 'http://www.google.com/search?q=ip' |
sed -n '/.*Your public IP address is [^0-9]*\([0-9.]*\).*/{s//\1/p;q;}'Edit: I knew that IP looked familiar - this is likely because of the Modify Headers Firefox add-on. Oh well, still broken.
It doesn't have to. It's part of the IP packet which contains the TCP packet which contains the request headers.
Are you sure that you are not using a proxy server at the address Wolfram gives you?
Edit: On second thought, you could try to fool server-side detection by setting a non-standard X-Forwarded-For header, but a what is my ip service shouldn't trust that and just report the real remote address.
alt="IPv4 | 124.120.*.*\nIPv6 (short version) | ::ffff:*:*\n(as seen by Wolfram|Alpha)" title="IPv4 | 124.120.*.*..."
So Sed still works ;) date -d @1262307721I don't get why my previous comment is down-voted ;-)