News for hackers. Stuff that matters.
Re:Your public IP address, via Google Search by pooriaazimi on Thursday July 26, 2012 @12:04PM (#4296698)
This is also nice:

http://www.google.com/search?q=gazpacho

Check the sidebar...

Re:Your public IP address, via Google Search by pbhjpbhj on Thursday July 26, 2012 @04:05PM (#4298326)
That's really good. Nice to see some innovation in SERPs - it lists ingredients that go in/with, for example, gazpacho and you can choose to include or exclude them from your recipe search. You can also set cooking times, eg "less than 15 mins"; and set calorific values, eg "less than 300cal".
Re:Your public IP address, via Google Search by ch0wn on Thursday July 26, 2012 @10:45AM (#4296185)
Another cool feature (is this new?): A scientific calculator https://www.google.com/search?q=ln(4)%20-%20sqrt(3)
Re:Your public IP address, via Google Search by DanielRibeiro on Thursday July 26, 2012 @11:00AM (#4296280)
Re:Your public IP address, via Google Search by pavel_lishin on Thursday July 26, 2012 @10:48AM (#4296203)
Interesting, it'll display -0.345756 as the answer, but if you toggle the radians/degrees switch twice, it'll show you -0.3457564464
Re:Your public IP address, via Google Search by TazeTSchnitzel on Thursday July 26, 2012 @01:24PM (#4297309)
I guess the first result is calculated server-side and rounded, but now it's client-side without rounding.
Re:Your public IP address, via Google Search by jervisfm on Thursday July 26, 2012 @10:54AM (#4296236)
Yes, I believe so. I often use google for quick calculations and this is the first time I am seeing this show up.
Re:Your public IP address, via Google Search by fatalerrorx3 on Thursday July 26, 2012 @10:40AM (#4296156)
I think this has been around longer than a year
Re:Your public IP address, via Google Search by webmonkeyuk on Thursday July 26, 2012 @11:00AM (#4296282)
It has - this is very old news http://news.ycombinator.com/item?id=3128665
Re:Your public IP address, via Google Search by pavel_lishin on Thursday July 26, 2012 @10:47AM (#4296199)
Don't forget about

    curl ifconfig.me
Re:Your public IP address, via Google Search by eru on Thursday July 26, 2012 @11:59AM (#4296663)
That's nice. The website seems to have a special case for when your browser-string is curl?
Re:Your public IP address, via Google Search by adatta02 on Thursday July 26, 2012 @10:44AM (#4296174)
Also http://whatismyip.akamai.com/ for a completely clean "get my IP" page
Re:Your public IP address, via Google Search by powertower on Thursday July 26, 2012 @11:00AM (#4296278)
It would be nice if there was a switch or param that we could use with Google's IP query to make it only return a minimal response on the page, or perhaps even get the IP via a HEAD request.

Some applications need to use the public IP address. So far we mostly have to maintain our own solutions (http://myip.wampdeveloper.com/) for our own products (http://www.devside.net/server/webdeveloper).

I got excited about GoogGoogle's IP query, then I looked at the page's source code! I guess I could parse that but still, there is no guarantee the format/syntax/text would stay the same.

So far I've seen a few dozen different IP return URLs. And I'm sure there are 1000s more private ones. If we could have one that's guaranteed to be around, that would help everyone out.

Re:Your public IP address, via Google Search by azar1 on Thursday July 26, 2012 @10:54AM (#4296239)
Re:Your public IP address, via Google Search by nuttendorfer on Thursday July 26, 2012 @10:46AM (#4296191)
I like http://jsonip.com/ as well
Re:Your public IP address, via Google Search by stroboskop on Thursday July 26, 2012 @11:25AM (#4296444)
Other search engines have this feature, too. For a refreshing change from Google, I prefer this: https://duckduckgo.com/?q=ip

And if you really need to confirm your IP address with Google: https://duckduckgo.com/?q=!g+ip

(check out the many other '!' features)

Re:Your public IP address, via Google Search by eru on Thursday July 26, 2012 @11:57AM (#4296659)
You didn't give a reason why you prefer duckduckgo, or why anybody else should. (I'm using that engine myself.)
Re:Your public IP address, via Google Search by hamai on Thursday July 26, 2012 @12:04PM (#4296695)
I think Google is not showing this to all countries, at least in my country I'm not seeing, but DDG shows it.
Re:Your public IP address, via Google Search by eru on Thursday July 26, 2012 @06:03PM (#4298990)
That would be a good reason, and a way to enrich the discussion.
Re:Your public IP address, via Google Search by Monotoko on Thursday July 26, 2012 @11:38AM (#4296528)
I've been using this for a while... it was certainly around last year, maybe even the year before that.
Re:Your public IP address, via Google Search by raikia on Thursday July 26, 2012 @10:11AM (#4296029)
It started doing this about a year ago. Definitely killed the need to have "whatsmyip.com" around.
Re:Your public IP address, via Google Search by Khao on Thursday July 26, 2012 @10:42AM (#4296164)
Somehow it doesn't work for me. Maybe country/language differences or adblocker?
Re:Your public IP address, via Google Search by rpicard on Thursday July 26, 2012 @11:13AM (#4296358)
It works with the &hl=en parameter. I'm using a Swedish VPN so I ran into the same problem.
Re:Your public IP address, via Google Search by aidenn0 on Thursday July 26, 2012 @11:47AM (#4296590)
Doesn't seem to work with ipv6?

[edit]

Clarification: with ipv4 it shows my ipv4 address, with ipv6, it doesn't show any address at the top.

Re:Your public IP address, via Google Search by tinco on Thursday July 26, 2012 @11:51AM (#4296609)
This is what I got when I clicked on the HN link:

Your public IP address is 2001:610:1908:8000:224:1dff:----:---

Keep in mind that although you might think you're on ipv6, there's a lot of stuff between you and google that might prevent you from actually connecting to google using ipv6.

I'm on a university campus that explicitly negotiated with google to have us on their ipv6 whitelist pretty early on. I forgot why they had a whitelist, hopefully its easier getting on google through ipv6 now.

edit: redacted a bit, I just realised maybe publishing my ip could have negative effects

Re:Your public IP address, via Google Search by archangel_one on Thursday July 26, 2012 @12:19PM (#4296789)
WFM, I see "Your public IP address is 2620:0:1042:1:...."
Re:Your public IP address, via Google Search by djcb on Thursday July 26, 2012 @11:32AM (#4296484)

  alias myip="dig +short myip.opendns.com @resolver1.opendns.com"

  alias myip2="curl -s icanhazip.com"
Re:Your public IP address, via Google Search by salem on Thursday July 26, 2012 @04:06PM (#4298329)
Ha! That is going to kill the revenue of whatismyip.com and whatismyipaddress.com
Re:Your public IP address, via Google Search by orphol on Thursday July 26, 2012 @10:41AM (#4296160)
Guess no more whatismyip what is next trace route :)
Re:Your public IP address, via Google Search by cypherpunks01 on Thursday July 26, 2012 @11:38AM (#4296529)
curl jsonip.com