Given an IP, how do you find out what country it is from?

Discussion in 'Programming' started by dreteh, Mar 21, 2010.

  1. #1
    Given an IP, how do you find out what country it is from?
    Can I do this in server side script like PHP?
    Thank you.
     
    dreteh, Mar 21, 2010 IP
  2. Zepxs

    Zepxs Active Member

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Use a whois. Usually it works well enough. Or you can google "IP Location". Here's something that I've found, ip2location.com/free.asp
     
    Zepxs, Mar 21, 2010 IP
  3. 123Systems

    123Systems Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    geoiptool.com

    You can lookup Any domain/hostname/ip address to get a location for it.
     
    123Systems, Mar 21, 2010 IP
  4. dreteh

    dreteh Member

    Messages:
    514
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #4
    Thank you. I will look them up.
     
    dreteh, Mar 21, 2010 IP
  5. organicCyborg

    organicCyborg Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you want to integrate a GeoIP solution into your script, check out this site: http://www.maxmind.com/app/geolitecity

    They have a free downloadable database of IP ranges and the geographical locations that they cover. It's not extremely accurate, but it's free, and will do the job 90% of the time.
     
    organicCyborg, Mar 21, 2010 IP
  6. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #6
    http://www.dnsstuff.com have a wide range of free tools (WHOIS Lookup, Traceroute, IP Information) to help you find the information you need.
     
    nimonogi, Mar 22, 2010 IP
  7. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
  8. ahtivas

    ahtivas Guest

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Even you can get the website information along with web server usage statistics at greatstatistics.com
     
    ahtivas, Apr 27, 2010 IP
  9. bikramsanjan

    bikramsanjan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    visit <a href="http://www.sanbik.co.cc">www.sanbik.co.cc</a> hope you will get the information which you are searching for.
     
    bikramsanjan, Apr 27, 2010 IP
  10. majin22

    majin22 Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i also suggest geroip as i created a script for a client to mas the referrers and redirect the users depending on their geo location. it's easy to use and its free
     
    majin22, Apr 28, 2010 IP