Net_GeoIP::lookupOrg() – returns the name of the organization or ISP for the given IP address.


require_once "Net/GeoIP.php";

string lookupOrg() ( string $addr )


This method returns the name of the organization or of the ISP which has registered the IP address range that contains the specified IP address. It works only with a non-free Organization/ISP database.

Looking up organization name

require_once "Net/GeoIP.php";

$geoip Net_GeoIP::getInstance("/path/to/geoipdb.dat");

try {
} catch (
Exception $e) {
// Handle exception


  • string $addr - IP address

    Note: Hostnames are not supported. More information.


This method throws an exception if the IP address is invalid or the database type is wrong.

Net_GeoIP::lookupLocation() (Previous) Net_IPv4 (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.