Install the complete package with local command reference and every published mode.
install geogeoUse
Public IP geolocation can be shifted by VPNs, proxies, mobile networks, CDNs and provider routing. -local avoids the remote lookup, but only works when the hosting environment provides a compatible GeoIP extension and database.
geo [host|ip|me] [options]geoshow provider and local GeoIP status
geo meuse the current visitor address
geo 8.8.8.8show a brief IP location and network summary
geo example.com -ashow all available location and network fields
geo -dbshow local GeoIP database details
-cshow country and continent
-rshow region, city, postal code and coordinates
-tzshow timezone details
-asn | -isp | -org | -domshow selected network details
-typeshow the IP family
-jsonshow the provider response as formatted JSON
-4 | -6resolve a hostname through IPv4 or IPv6
-localuse the local GeoIP extension only
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install geoInstall the reduced package. Local reference is omitted;
install geo -mInstall exactly this published version.
install geo -v 1.2.3Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade geoRemove the extension block while leaving the core and unrelated modules intact.
install geo -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
geo | geo 8.8.8.8Remote ipwho.is
HTTPS yes
Local GeoIP no
IP 8.8.8.8
Source ipwho.is
Type IPv4
Country United States (US)
Region California
City Mountain Viewgeo 8.8.8.8IP 8.8.8.8
Source ipwho.is
Type IPv4
Country United States (US)
Region California
City Mountain Viewgeo example.com -aTarget example.com
IP 93.184.216.34
Country United States (US)
Region California
City Los Angeles
Coordinates 34.05, -118.24
ASN AS15133
ISP Example Network
Organization Example Inc.geo example.com -c -rCountry United States (US)
Region California
City Los Angeles
Postal code 90001
Coordinates 34.05, -118.24geo example.com -asn -isp -orgTarget example.com
IP 93.184.216.34
Country United States (US)
Region California
City Los Angeles
Coordinates 34.05, -118.24
ASN AS15133
ISP Example Network
Organization Example Inc.geo example.com -json{
\"ip\": \"93.184.216.34\",
\"country\": \"US\",
\"asn\": \"AS15133\"
}geo -dbLocal GeoIP database unavailablegeo 127.0.0.1Public IP address requiredFinalizes Local and Server Help synchronization and localization safety for