Ask a Jedi: Determining Country from IP

A reader asks:

My question for you is how can we track the country name or country code from IP Address using Coldfusion?

There are a variety of ways of solving this problem (and I know that my readers, as always, will chime in), so I’ll focus on how I solved it for a recent client of ours. We used a product called geoLocator, created by the ColdFusion King of International Issues, Paul Hastings. The geoLocator CFC will return a wealth of information about the user’s country, all based on IP, which means it is not perfect, but works “close enough” I’d say for most uses. I had no trouble integrating it into our site, and you can’t beat the price (free).

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments