NetTalk Central

Author Topic: IP-country of user logged in  (Read 3872 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1872
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
IP-country of user logged in
« on: February 25, 2009, 07:59:29 AM »
Hi,
Any way to know the IP from where the user is accesing the server?
And any example of how to know from wich country or region cames?
Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: IP-country of user logged in
« Reply #1 on: February 26, 2009, 12:28:47 AM »
Hi Alberto,

We use the IP2Location database
http://www.ip2location.com/?rid=744
(We're an affiliate, so we get some commission if you use the link above when you buy something. It doesn't cost you anything extra.)

The database is updated regularly and starts from $49 per server per year. The cost goes up depending on how much information you want about the IP address. So for example if you want just country, that's $49. If you want country, and region and city then it's $199 per year. Assuming you're actually doing something with this information it's remarkably cheap.

We also have some code already written to import their database into clarion files (ie a Dict, import routines and so on.) If there was a demand for that we could release it. (hmm - I guess we could release it for free to people who'd bought using the link above...)

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1872
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: IP-country of user logged in
« Reply #2 on: February 26, 2009, 04:40:09 AM »
Ok Buece but...

How do I know which IP is accesing my server?

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: IP-country of user logged in
« Reply #3 on: February 26, 2009, 11:59:25 AM »
p_web.requestdata.fromip

Cheers
Bruce