GeoIP sync function for node.js 1) Install GeoIP: apt-get update && apt-get install geoip-database-contrib libgeoip-dev (may be need add 'non-free contrib' string in /etc/apt/sources.list) 2) Get this : git clone https://github.com/progman/node-geoip-sync.git 3) Make this: node-waf configure build 4) Use this : see example 5) Enjoy!