View Full Version : What IP can tell me?

07-02-2010, 06:03 PM

I know ones' IP, and I want to know where "it" is - city and address...

Is it possible? OR Can I create a script to do locating? {It would detect all info when he is on the page with script}

All, suggestions are welcome...

07-04-2010, 10:54 PM
Geo locating *may* be able to get the country, region and sometimes city. There exists no implied accuracy, except in domain lookups with provided addressing (so, businesses maybe). That would be exclusive of NAT.
My last test put my expected location (non-proxied, with an accurate ip) over 3400KM away and in a different country. So to answer your question, an ip can provide nothing of tangable value. We log so if any illegal activity occurs the address can be provided to authority and they can work with the isp - an ISP will not provide end users with information. Static addresses can be used for blocking, but thats about the extent of its value on the web.

07-05-2010, 11:37 AM
Could you post a script which you used?

I know that is is really not accurate detection, but maybe it will show a real place. If it will show many KM from me, I will understand it as a fail info :)

Philip M
07-05-2010, 12:07 PM
Firefox Plugin:
Displays IP Trace information when you hover over a link.
Hostipfox (download)
Source: git://github.com/bfolkens/hostipfox-firefox-plugin.git

It is your responsibility to die() if necessary….. - PHP Manual

07-07-2010, 04:03 PM
I need script which could show not mine but others information...

07-07-2010, 04:11 PM
PHP has a geoip module through pecl.
Getting the hostname is generally just gethostbyaddr. BTW, that one can also fail.