Live data from Hacker News

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

google.com

91–97 of 97 posts

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

#91
post #18
post #13

It's also a great news for Malware too as they usually check for their remote IP. But maybe that will be another way of Google to detect if the local machine is infected in a near future.

Malware usually opens a reverse (TCP) connection and thus does not require the remote IP of the infected machine. It only needs to know the IP or domain name of the server it wants to communicate with.

Regularly reversing malware samples, we still see many malware getting their respective remote IP from remote services. This is even used by some recent malware to update the bootstrap DHT with their own IP... In such case, they don't even need to contact directly the C&C.

I don't get why my previous comment is down-voted ;-)

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

#92
post #61

Earlier quoted context omitted.

What's worse is that they could drop these services in the future, all of a sudden there is nothing capable of performing the function.

...leaving a gap in the market which something would surely arise to fill.

It still disadvantages those people who want to use that service while there is nothing to perform the job. Take google recently killing code search http://googleblog.blogspot.com/2011/10/fall-sweep.html. One of the commenter's had been building their own code search platform before google did. Google entering the market meant that this was no longer viable though http://news.ycombinator.com/item?id=3112444. A new code search platform will no doubt pop up, but it will take a while to get something that works well.

This is the problem with the giant company stepping into new areas, it often leaves destruction in its wake.

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

#93
post #48

Earlier quoted context omitted.

To force the IPv6 IP on Google - http://ipv6.google.com/search?q=what+is+my+ip

It's telling me regardless, It's not telling me the IPv4 address.

I have IPv6 and IPv4 through my ISP (TimeWarner) - but I have to explicitly tell Google that I want an IPv6 connection with the subdomain.

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

#94
post #48

Earlier quoted context omitted.

It's telling me regardless, It's not telling me the IPv4 address.

I have IPv6 and IPv4 through my ISP (TimeWarner) - but I have to explicitly tell Google that I want an IPv6 connection with the subdomain.

Can you pls pm me? I have some questions reg. twc connection.

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

#95
post #48

Earlier quoted context omitted.

It's telling me regardless, It's not telling me the IPv4 address.

I have IPv6 and IPv4 through my ISP (TimeWarner) - but I have to explicitly tell Google that I want an IPv6 connection with the subdomain.

Can you pls pm me? I have some questions reg. twc connection.

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

#96
post #7

Great, this saves me that agonizing click on whatismyip.com.

I like http://icanhazip.com Great for scripts too.

There's always http://checkip.dyndns.org , which has a lot lower chance of just being suddenly removed for whatever reason.

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

#97

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?

If your use-case is from ssh'ing in a remote box, this may be simpler:

  #!/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
Post reply on HN