Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
am having an application in which i am storing
user ip address. But now i want to store the City,
Country and Country Code of the user on the
basis of their ip addresses. So I am able to get the
user's IP Address in ASP.NET but how to get
other details. If its possible (which i don't thin it is) then tell me else tell me some alternate way to
do this, is there any online FREE service using
which ican get these details
Posted 20-Feb-13 4:43am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can get some information (which purports to be the location) by using one of the many IP address location services out there (google can find a few for you, but here is one to start with: http://www.ipaddresslocation.org/[^] but be aware that it may not be at all accurate - it depends on the ISP and since most of these use dynamic address allocation if the block associated with that physical area is used up, one will be allocated from a different address block. I have seen mine come up with England, Germany, Holland and so forth in the past, all with the same ISP.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

yeah but i am looking for handle it by using c# code or by using java script...
If any one knows please solve this.
  Permalink  
Comments
Surendra0x2 at 20-Feb-13 11:49am
   
Use have a question or comments widget to comment :| u posted comment in solution .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 370
1 Gihan Liyanage 338
2 Vinay Mistry 160
3 ChauhanAjay 160
4 syed shanu 125
0 Sergey Alexandrovich Kryukov 9,021
1 OriginalGriff 7,941
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100