I have recently released the first version of a new project called easy-geoip: an easy-to-install and easy-to-use IP geolocation server. It works with both IPv4 and IPv6 addresses.
With easy-geoip, you can get IP geolocation data in either JSON or plain text format. To see what the output looks like for your IP address, check out my own running instance of easy-geoip. To get the output as plain text data, use this link instead.
Download and installation instructions are available here. Enjoy! :-)