Solved

How to derive the name of the country from the I.P. address?

Posted on 2001-08-27
5
246 Views
Last Modified: 2012-05-04
How to derive the name of the country from the I.P. address?
0
Comment
Question by:sandeepz_
5 Comments
 
LVL 20

Accepted Solution

by:
Silvers5 earned 200 total points
ID: 6428087
You can't effectively.. you'll need to use a reverse dns lookup component, like:

Dim RemoteIP, DNSx, Arec
RemoteIP=Request.ServerVariables ("REMOTE_ADDR")
Set DNSx=Server.CreateObject ("ASPDNS.DNSLookup")
Arec = DNSx.GetNameFromIP (Cstr(RemoteIP))

now the Arec will hold the domain name.. you can't be able to identify the user's country unless the domain is registred in a country's registrar.. like .ru for russia.. .us for usa.. and thus this is not 100% sure since a Domain isn't limited by geographical limits.. you can have a .ru domain that is hosted (or operated) in Zimbabway..also the user might be surfing using a proxy, thus you'll get the proxy ip instead of the user's ip

Free reverse dns component from:
http://www.internext.co.za/stefan/aspdns/

0
 
LVL 7

Expert Comment

by:weesiong
ID: 6428107
Silvers5 is correct :)

Regards,
Wee Siong
0
 
LVL 9

Expert Comment

by:AlfaNoMore
ID: 6432120
This might not be entirely what you want, but it might come close:

http://support.microsoft.com/support/kb/articles/Q229/6/90.ASP

Daniel.
0
 
LVL 33

Expert Comment

by:hongjun
ID: 8755436
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[points to Silvers5]

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

hongjun
EE Cleanup Volunteer
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now