MyIP - geolocate by IP
This little app shows your external IP and then uses uses the IPInfoDB API to provide geolocation data, based on that IP. Currently, results are offered in JSON format only.
Motivation
I'm on the road quite a lot, and many times I need to know my external IP. Oftentimes, it's good to know where web sites think I'm calling from.
I wrote a version of this in PHP, that still works great, but I wanted to try a simple Node.js app. The idea was to try writing this as simple as possible, with no external modules or dependencies. After finishing the server side, I wrote a simple Chrome extension (see below) that consumes the JSON and shows it in a browser.
You can find the full story on my code blog.
Usage
- Clone the repo (if you're here, you know how to do that :))
- Go to IPInfoDB API and register for the free API key
- Paste the API key into the config.json file
- Run the app using
node app
- tested on node 0.10 and higher
You can test a running version at http://MyIP.TravelingTechGuy.com (hosted on Heroku).
Chrome extension
You can check out the Chrome extension that uses the service to show the info in the Chrome browser.
- Find the repository here https://github.com/TravelingTechGuy/myipextension
- Download from the Chrome app store.
Created by Guy Vider http://www.TravelingTechGuy.com