How to determine the Country and Organization from IP

How to determine the Country and Organization from IP

Post by addverm » Sat, 09 Aug 2003 00:24:52


Hi,
I would like to determine the Country and Organization from a given
IP. I have to write a JSP, which when given the IP address gives the
country and the organization to which the IP belongs. The organization
may be the ISP, or a MNC or any other corporate/government body, or it
may be of an individual. I have to do it progamitically from inside a
JSP?
Any suggestions anybody

Thanks in Advance for your reply
 
 
 

How to determine the Country and Organization from IP

Post by Grant Wagn » Sat, 09 Aug 2003 02:47:33


Do a whois lookup, then parse the results that are returned. You could do
something as simple as:

<url: http://www.yqcomputer.com/ ;

then parse the HTML returned.

Or find some service that allows SOAP calls, or a service that returns the
data in an easier to parse format, such as XML or comma-delimited.

 
 
 

How to determine the Country and Organization from IP

Post by Michael Wi » Sat, 09 Aug 2003 06:12:27

One problem with this (as I have found recently) is that there are four
***independent*** regional Internet registries. However, the American
(North) and sub-equatorial African registry (ARIN - www.arin.net) does seem
to point you to which registry does contain the information, if they don't,
on a regular basis. This will require more parsing on your behalf.

The four registries are:

APNIC ( http://www.yqcomputer.com/ ) - Asia (Pacific).
ARIN ( http://www.yqcomputer.com/ ) - North America, (part of) the Caribbean, and
sub-equatorial Africa.
LACNIC ( http://www.yqcomputer.com/ ) - Latin America and the Caribbean.
RIPE ( http://www.yqcomputer.com/ ) - Europe, the Middle East, Central Asia, and
Africa.

I don't know if there is a central database (there probably isn't), but some
web-sites do query all of the registries. I knew one that would allow HTTP
GET requests, but it's disappeared from my browser history (?!?!).

Michael

--
M.Winter@(I_hate_spam)blueyonder.co.uk
Remove "(I_hate_spam)" to reply.
 
 
 

How to determine the Country and Organization from IP

Post by Neomorp » Mon, 11 Aug 2003 00:16:56

On Sat, 09 Aug 2003 01:40:11 GMT, Roedy Green < XXXX@XXXXX.COM >
two-finger typed:


You could do a reverse DNS call to at least get the full name of the
machine. This will give you a name that may tell you more.

It is basically impossible to get a true geographic location on every
machine through their IP number, though. You would have to equip each
machine with a GPS system that is always accessible through the internet
;-)

Cheers.
 
 
 

How to determine the Country and Organization from IP

Post by Amir Pasha » Wed, 27 Aug 2003 08:51:03

Hi,
use MaxMind GeoIP ( http://www.yqcomputer.com/ )

Amir Pashazadeh