Skip to content

guozheng/locviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locviz: visualize ips on the map

screencast

This is a simple tool to visualize ip addresses on a map. For example, you can use it to monitor realtime stream of ip addresses from Web application request log.

Usage

  • Clone the git repo: git clone https://github.com/guozheng/locviz.git
  • Install package manager (we use yarn) libs: brew install yarn && yarn install
  • Start test client that writes ips to /tmp/request-ips: yarn startTestClient
  • Start the server yarn start and point Web browser to http://localhost:8080

Acknowledgement

  • Code is based on Alan Eng's snippet. It takes each zip code object that contains lat and lon and plots them on the map.
  • Many thanks for the libs used in package.json such as D3.js, Express, socket.io, socket.io stream, tail-stream, maxmind, etc.
  • IP to location mapping is done using the free MaxMind geolite2 data. It is from a manual download, there exists an update program. Other similar data packs can be found in this IP-based Geolocation FAQ article.

License

MIT License, see LICENSE.

About

visualize ip addresses in realtime on the map

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published