Library tutorials & articles
Extracting the Country from the IP Address:- How To?
By Amit Gupta, published on 13 Mar 2004
Introduction
Internet is vast & is spread across many countries & continents. Knowing the country of a visitor to your website can be a tedious task, if you don't know how to proceed.
The Need??
But firstly, the question that arises is why would you be interested in knowing the country of visitors to your website. The reasons can be many. Some of them are:
How??
Ok, you have the reason to know the country of your visitor, now the question is, how to proceed? How can you know the Country of your Visitor?
IP & the Country??
Every internet user has a unique IP address, or in other words, every computer connected to internet, has a unique IP address. IP address is a numerical address to refer to a computer. The example of an IP address is
120.36.162.75
Every ISP(Internet Service Provider) has been allocated a range of IP address which it can provide to its users. So, through an IP address, we can find out the country of the visitor.
The Need??
But firstly, the question that arises is why would you be interested in knowing the country of visitors to your website. The reasons can be many. Some of them are:
- Displaying Geo-Specific Ads
- Targetting Geo-Specific Visitors
- Maintaining a Log of Visitors to the website
- Displaying the website in local language
- Re-directing the visitor to local website
- Displaying Product Prices in Local Currencies
How??
Ok, you have the reason to know the country of your visitor, now the question is, how to proceed? How can you know the Country of your Visitor?
IP & the Country??
Every internet user has a unique IP address, or in other words, every computer connected to internet, has a unique IP address. IP address is a numerical address to refer to a computer. The example of an IP address is
120.36.162.75
Every ISP(Internet Service Provider) has been allocated a range of IP address which it can provide to its users. So, through an IP address, we can find out the country of the visitor.
Related articles
Related discussion
-
Read eMails from Outlook express using ASP
by kumaravelu (1 replies)
-
Help to Call ASP function from onclick event in HTML to pass an array
by vka (0 replies)
-
Binary Studio | software development outsourcing Ukraine
by shane124 (4 replies)
-
Variable In Vb.Net
by chia (0 replies)
-
ideas in building a captive portal
by sjranjan (2 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
Comments
Leave a comment
Sign in or Join us (it's free).