IP2 geolocation web server
git clone https://github.com/honzahommer/ip2nfo.git
cd ip2nfo
npm install
npm start
or
npm install -g ip2nfo
ip2nfo --port 3000
or
const ip2nfo = require('ip2nfo');
ip2nfo.start(3000);
npm test
curl localhost:3000
curl localhost:3000/hostname
curl localhost:3000/1.1.1.1
curl localhost:3000/1.1.1.1/hostname
curl localhost:3000/8.8.8.8/distance/9.9.9.9