dannyman.toldme.com


Technical

Fun with IP Mapping

We recently set up an old machine at work to play the part of an “ops warboard” . . . basically, a Firefox session with the tab-slideshow module, paging through screens of Big Sister status lamps. I got to thinking, that one very cool thing to do, is to set up a map, with little dots on it that light up when people log in to our web application.

There is a web site to map IPs to geographic information: hostip.info. I yanked IPs from web logs, and wrote a script to query the web site for Latitude and Longitude, and then delved into the complexities of xplanet.

To prove my own understanding, I hacked up this:

WARNING: Do not visit this link! Some Hungarian asshat linked to it in a message forum and stole a bunch of server bandwidth so it is currently serving alternate content. (Sorry.)

http://dannyman.toldme.com/scratch/animated.gif

That’s a 24-frame animated gif of hourly hits to my web site from last Wednesday. I’m hoping to write a script to generate such things automatically. For a “real time” deal it is a matter of getting the IPs you want to map from the web logs to the mapper. I’m thinking some minor daemon who tails logs and perhaps send RPC pings when it sees a “new” IP address. Where “new” is “new within the past five minutes” . . . that gets converted into geo coordinates, and the map is refreshed every so often. Not quite “real time” but close enough to look cool.

Read More

Next:
Previous:
Categories: Technical
Possibly-Related Posts

Responses

April 11th, 2006

Mike

That makes me want to have your babies.

April 11th, 2006

dannyman

I’ll let Yayoi know.

April 11th, 2006

The Ji Village News

Very cool Danny!

April 20th, 2006

Chris

Your mind works in ways I don’t understand. BUT one thing (prolly the only part of this I understand) is your computer can tell where I am?!?!? I thought we could all be anonymous in cyber space? What happened to THAT?

Comment

Leave a comment . . .

Tiny Print:

  1. For private messages, e-mail me: dannyman@toldme.com.
  2. You must provide an e-mail address.
  3. You can use a bogus e-mail address, but I like to know who you are.
  4. I will not spam you. I will not publish or share your e-mail address.
  5. First-time commenters will be held for review.
  6. You can use these HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>