Live data from Hacker News

Google now tells you your IP when you ask it in search

google.com

71–80 of 97 posts

Re: Google now tells you your IP when you ask it in search

#71
post #37

Ok, so I have a curl/awk one-liner that can get me my ip in shell scripts that uses checkip.dyndns.org. It's super simple because the results are super simple from checkip. Anyone want to take a stab at this for google's result page?

One way: 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;}'

Google really doesn't it like it when you script their search. Better to use one of the many, many services designed for this purpose. Or set one up yourself in roughly one line of code.

Re: Google now tells you your IP when you ask it in search

#72
post #33

This is something that's been going on for a while - Google killing small web apps; Convertors, calculators, movie listings, ip finders, weather stats, stocks. It's not all low-hanging fruit. I'm not saying they shouldn't be doing this, nor that it's intentional. Their goal is to be the best search engine which means connecting searchers with answers as quickly as they can. But even so, it sucks for the web apps who…

Actually the only way for a "my IP" application to make some money is be indexed as first result in Google I guess. At least I never remember the domain of one of that 200 trivial apps and search on google. So makes a lot of sense they showing you the result if you search for "ip" or "my ip".

Re: Google now tells you your IP when you ask it in search

#75
post #70
post #56

Earlier quoted context omitted.

I always hated how weather sites could not just detect my approximate location based off of ip (eg weather.com) and required me to enter in my zip code, google fixed that.

http://www.wunderground.com/ has worked by geoip for a while now.

Pretty sure they got that after google. For years, wunderground was the best of a bunch of terrible web sites. They're still about 40% ads by pixel though, and have a hugely cluttered UI. I'll use them as a second step (Google's "detailed forecast" link) after typing "weather" into the chrome address bar. But broadly, they still suck compared to Google.

Re: Google now tells you your IP when you ask it in search

#76
post #56
post #51

Earlier quoted context omitted.

This is why I mentioned that it's not all low hanging fruit. Movie listings? Requires feed integration, handling a lot of data, non-trivial presentation. Same with weather. Getting a good weather app is not 10 seconds of coding. Some, like ip address, are simple things, but even so whatismyip.com built a huge range of products around that one simple service.

I always hated how weather sites could not just detect my approximate location based off of ip (eg weather.com) and required me to enter in my zip code, google fixed that.

http://www.wolframalpha.com/input/?i=weather

Re: Google now tells you your IP when you ask it in search

#79
post #71
post #37

Earlier quoted context omitted.

One way: 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;}'

Google really doesn't it like it when you script their search. Better to use one of the many, many services designed for this purpose. Or set one up yourself in roughly one line of code.

True, but the OP asked explicitly for it and no one else seemed to answer that question.

Re: Google now tells you your IP when you ask it in search

#80
post #60

Remember, if the answer is delivered with HTTP, the reported IP may be the IP of your ISP's transparent proxy server. If you want the IP of your NAT box, you need a what-is-my-IP where the response is delivered over HTTPS.

You can proxy https. See RFC2817 section 5.

-molo

Post reply on HN