Skip to main content

Posts

Showing posts from July, 2017

How to Hosting Freegeoip on Ubuntu Server

freegeoip.net provides a public HTTP API for software developers to search the geolocation of IP addresses. It uses a database of IP addresses that are associated to cities along with other relevant information like time zone, latitude and longitude. Step (1). Install Docker on Ubuntu 14.04 LTS:  $ sudo apt-get install docker.io Step (2). freegeoip listen on port 12904, run the following command:  $ sudo docker run --restart=always -p 12904:12904 -d fiorix/freegeoip -http 0.0.0.0:12904 Step (3). Test:  $ curl localhost:12904/json/1.2.3.4