Live data from Hacker News

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

google.com

31–40 of 97 posts

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

#31

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?

Even simpler:

    curl icanhazip.com

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

#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 get made redundant by Google.

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.

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

#34
post #31

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?

Even simpler: curl icanhazip.com

also,

    http://myip.dnsomatic.com
    http://whatismyip.org

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

#35

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?

I prefer 'curl ifconfig.me'

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

#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;}'

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

#39
post #23
post #6

Earlier quoted context omitted.

For months... what? This is what it shows me, here in my studio apartment in London: http://i.imgur.com/uXBJk.jpg Edit: I knew that IP looked familiar - this is likely because of the Modify Headers Firefox add-on. Oh well, still broken.

how would a modify headers add-on be able to let the server think that you are coming from a different address? It's not as if the browser sends the origin address as a HTTP header. 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 t…

Yup, non-standard X-Forwarded-For header here (thank you, Comedy Central!). Clearly not to be trusted by an IP finding service :)
Post reply on HN