IP or Hostname to Location

Discussion in 'Programming' started by twalters84, Oct 24, 2007.

  1. #1
    Hey there,

    I am looking for a way to determine location of a user via their IP address or hostname. I need to be able to do this programmatically.

    Does anybody have any suggestions?

    Thanks in advance.

    Sincerely,
    Travis Walters
     
    twalters84, Oct 24, 2007 IP
  2. Indian_Webmaster

    Indian_Webmaster Banned

    Messages:
    1,289
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is very easy.

    You can get IP2LOCATION DB from net. Search for it on Google...
    Use that DB and make your script

    http://www.location.com.my/free.asp

    Hope this helps...
     
    Indian_Webmaster, Oct 24, 2007 IP
    twalters84 likes this.
  3. litebulb1

    litebulb1 Peon

    Messages:
    151
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This site is pretty sweet because it gives you a google map of the users location.
     
    litebulb1, Oct 24, 2007 IP
    twalters84 likes this.
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Barti1987, Oct 24, 2007 IP
    twalters84 likes this.
  5. firmaterra

    firmaterra Peon

    Messages:
    756
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What language you programming in???
     
    firmaterra, Oct 24, 2007 IP
  6. dpfreaks

    dpfreaks Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Use this tool in your script:

    api.hostip.info/get_html.php?ip=yourip&position=true
     
    dpfreaks, Oct 25, 2007 IP
    twalters84 likes this.