News for hackers. Stuff that matters.
Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @08:41PM (#6752024)
Check out http://ipinfo.io too, which has both an uncluttered website and a simple API, eg:

    $ curl ipinfo.io
    {
      "ip": "67.188.232.131",
      "hostname": "c-67-188-232-131.hsd1.ca.comcast.net",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.385999999999996,-122.0838",
      "org": "AS7922 Comcast Cable Communications, Inc.",
      "phone": 650
    }

    $ curl ipinfo.io/geo
    {
      "ip": "67.188.232.131",
      "city": "Mountain View",
      "region": "California",
      "country": "US",
      "loc": "37.385999999999996,-122.0838",
      "phone": 650
    }

    $ curl ipinfo.io/org
    AS7922 Comcast Cable Communications, Inc.
    
    $ curl ipinfo.io/8.8.8.8/org
    AS15169 Google Inc.
More details available at http://ipinfo.io/developers
Re:Show HN: ifcfg.net by xux on Sunday November 17, 2013 @08:52PM (#6752058)
I find this really disturbing:

http://ipinfo.io/recent

Might not want to display people's data like that.

Re:Show HN: ifcfg.net by MichaelGG on Monday November 18, 2013 @12:40AM (#6752787)
What's so disturbing about what IPs were looked up on a site?

The only way I find that remotely possibly of any interest is perhaps maybe some of those IPs are slightly more prone to having some sort of public unsecured service. (And uses this API/site to find the public IP.)

Is there an actual legitimate complaint or worry here?

Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @08:55PM (#6752070)
What do you mean by "people's" data? It's information about an IP address that is completely public. You could find it by going to ipinfo.io/<any random IP address>, or by using various tools or other websites to look it up.
Re:Show HN: ifcfg.net by joshu on Sunday November 17, 2013 @09:52PM (#6752202)
It's the recent accesses by those IP addresses as well. Don't be thick.
Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @10:07PM (#6752253)
It's a sample of IPs that have recently been looked up, which doesn't necessarily mean that IP visited the site or used the API.
Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @10:27PM (#6752321)
@prawn (sorry can't reply directly) - interesting, I didn't think this was a big deal at all. Can you explain your reservations?

The page is actually only there for SEO purposes, so that google indexes these IPs without me having to go to the trouble of building a site map. If there's genuine concerns or issues with that page then I'll kill it.

Re:Show HN: ifcfg.net by prawn on Sunday November 17, 2013 @10:21PM (#6752305)
I wouldn't use the service as long as recent look-ups were publicised.
Re:Show HN: ifcfg.net by matiasb on Sunday November 17, 2013 @09:44PM (#6752182)
I think he's talking about the recent IP list itself.
Re:Show HN: ifcfg.net by corobo on Monday November 18, 2013 @06:59AM (#6753893)
I wouldn't say disturbing but it's definitely a negative smudge on an otherwise useful service.

It just looks like search engine spam really - those sort of ones that appear when you search for an IP address in Google

Re:Show HN: ifcfg.net by rachelbythebay on Sunday November 17, 2013 @08:44PM (#6752029)

      "loc": "37.385999999999996,-122.0838",
Did a float creep into the storage system at some point?
[deleted]
Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @11:03PM (#6752449)
The list of tor IPs is updated every 2 hours from https://www.dan.me.uk/torlist/ - presumably you're on that list?
Re:Show HN: ifcfg.net by tptacek on Sunday November 17, 2013 @07:01PM (#6751650)
You should keep adding stuff to this. You're right, with the exception of your IP address, most of this information is crudded up either with ads or with archaic 90's web interfaces.
Re:Show HN: ifcfg.net by namidark on Sunday November 17, 2013 @07:11PM (#6751687)
Thanks for the positive feed back :) I'm open to ideas -- its been a fun little project to learn Scala with.
Re:Show HN: ifcfg.net by dsl on Sunday November 17, 2013 @11:01PM (#6752441)
Just a heads up, anything that allows you to get your external IP address will eventually get hardcoded into a shareware application of some sorts or used by a botnet.

There is a reason all the popular sites are "slow to respond" or make you jump through CAPTCHA or rate-limit hoops.

Re:Show HN: ifcfg.net by gburt on Sunday November 17, 2013 @07:23PM (#6751744)
Find a way to make this profitable please. I'd love to use it, but I don't want it to disappear!
Re:Show HN: ifcfg.net by namidark on Sunday November 17, 2013 @08:03PM (#6751902)
Source is on github over at https://github.com/joshrendek/scala-ifcfg-api

If you have play 2.2.1 in your path its as simple as running `play dist` and moving the zip over to your server, and running the shell script play creates :)

Re:Show HN: ifcfg.net by marquis on Sunday November 17, 2013 @07:49PM (#6751845)
The source code is published.
Re:Show HN: ifcfg.net by hammadfauz on Monday November 18, 2013 @05:28AM (#6753639)
To avoid relying on external sources, I use expect, to telnet into my router and get the ip address of its public interface. Here's an example expect script.

http://serverfault.com/questions/89114/finding-the-public-ip...

Re:Show HN: ifcfg.net by devNoise on Sunday November 17, 2013 @08:45PM (#6752031)
This looks interesting, but my knowledge of networking acronyms is lacking. While I know what RBL is, I'm not sure what AS is. Since I'm having trouble coming up with a search string to give me the answer, I'm asking for some help. Thanks
Re:Show HN: ifcfg.net by coderholic on Sunday November 17, 2013 @08:47PM (#6752039)
"Within the Internet, an Autonomous System (AS) is a collection of connected Internet Protocol (IP) routing prefixes under the control of one or more network operators that presents a common, clearly defined routing policy to the Internet", from http://en.wikipedia.org/wiki/Autonomous_System_Number
Re:Show HN: ifcfg.net by devNoise on Tuesday November 19, 2013 @10:16AM (#6761662)
Thanks, that helped to clarify things.
Re:Show HN: ifcfg.net by dewey on Sunday November 17, 2013 @07:35PM (#6751794)
This is great, thanks for sharing. I used to use ifconfig.me but somehow it's taking a long time to respond even if you are just using curl. So I'm glad I'll be able to replace it with your site.
Re:Show HN: ifcfg.net by thejosh on Sunday November 17, 2013 @10:56PM (#6752418)
Noticed ifconfig.me is very patchy in terms of response time, this tool does look nice if it stays fast.
Re:Show HN: ifcfg.net by joshguthrie on Sunday November 17, 2013 @06:55PM (#6751630)

  $ time curl ifconfig.me
  88.177.189.XX
  curl ifconfig.me  0,01s user 0,01s system 0% cpu 2,517 total
  $
How is this for "cluttered with ads, taking too many seconds to respond"?
Re:Show HN: ifcfg.net by namidark on Sunday November 17, 2013 @07:06PM (#6751669)
I've had the response time vary wildly -- also try opening that up in a browser and you'll see what I mean.
Re:Show HN: ifcfg.net by mikewhy on Sunday November 17, 2013 @08:07PM (#6751920)
There's also ip.appspot.com, circa 2005

    $ time curl ip.appspot.com
    76.11.33.XXX

    real    0m0.184s
    user    0m0.007s
    sys     0m0.006s
Re:Show HN: ifcfg.net by geuis on Sunday November 17, 2013 @09:56PM (#6752219)
Pretty cool! I've been running http://jsonip.com for a few years too.
Re:Show HN: ifcfg.net by vezzy-fnord on Sunday November 17, 2013 @06:56PM (#6751635)
Any way in particular that this would be preferable over using desktop tools and shell utilities?
Re:Show HN: ifcfg.net by tptacek on Sunday November 17, 2013 @07:01PM (#6751646)
For starters, because you can't use desktop tools to reliably figure out your effective, routed IP address.
Re:Show HN: ifcfg.net by tzury on Sunday November 17, 2013 @10:09PM (#6752262)
Great work!

'/as' and '/rbl' are quite useful.

thanks for sharing this and the source code as well.

Re:Show HN: ifcfg.net by jasonrojas on Monday November 18, 2013 @01:28AM (#6752933)
oh look another IP info site....

Did I mention http://ifconfig.me/ ?

Re:Show HN: ifcfg.net by Malstrond on Sunday November 17, 2013 @09:46PM (#6752191)
No IPv6 :(
Re:Show HN: ifcfg.net by jlgaddis on Monday November 18, 2013 @02:34AM (#6753115)
Re:Show HN: ifcfg.net by malandrew on Sunday November 17, 2013 @08:41PM (#6752023)
There is also ifconfig.me
Re:Show HN: ifcfg.net by matiasb on Sunday November 17, 2013 @06:53PM (#6751625)
really useful