Registry / networking / geoip
library1.6.4rbrubygemsunverified

GeoIP searches a GeoIP database for a given host or IP address, returning country, city, ISP, and other location information.

gem install geoip
INSTALL
IMPORT
SIG · GEOIP
G
geoip
networkingrubyv1.6.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GeoIP
✓ require 'geoip'

Look up IP address location

require 'geoip' geo = GeoIP.new('GeoLiteCity.dat') location = geo.country('8.8.8.8') puts location.country_name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
geoip — gem install geoip · libregistry