Live data from Hacker News

Whats-My-IP-Service without all this crap

denisu.jp

21–27 of 27 posts

Re: Whats-My-IP-Service without all this crap

#21

Earlier quoted context omitted.

or even better, an easy-to-parse key value pair: ip=208.128.7.7

I'd contend that "208.128.7.7" is a more minimal, and useful, return value than "ip=208.128.7.7".

"ip=208.128.7.7" would be actually nice if the output would be like:

  ip=208.128.7.7
  location=france
  ua=Mozilla/5.0 (Macintosh; U; Intel blah blah

Re: Whats-My-IP-Service without all this crap

#22
post #18

Earlier quoted context omitted.

Usually those services tell you your public IP. This service says my IP is 10.1.3.46, and while technically correct, useless.

How can it give you your private IP address? I'm curious... Is there a javascript call to list the IP addresses of any machine? That feels very insecure to me. EDIT: Sorry I forgot to turn on my joke detector.

It probably gets it from the X-Forwarded-For HTTP reader inserted by his intranet proxy.

http://en.wikipedia.org/wiki/X-Forwarded-For

Re: Whats-My-IP-Service without all this crap

#23

Earlier quoted context omitted.

or even better, an easy-to-parse key value pair: ip=208.128.7.7

I'd contend that "208.128.7.7" is a more minimal, and useful, return value than "ip=208.128.7.7".

Yes, I agree, especially for shell scripts and such. A service should give me 1) plain text, 2) key value pairs, 3) json, and 4) human readable/copyable output.

Re: Whats-My-IP-Service without all this crap

#27

http://whatismyip.org/ A bit easier to spell/remember.

Usually those services tell you your public IP. This service says my IP is 10.1.3.46, and while technically correct, useless.

Thanks for the feedback, it should now display the correct HTTP_X_FORWARDED_FOR-header if available.
Post reply on HN