getIPPos: Get the location of a computer on the internet

getIPPosR Documentation

Get the location of a computer on the internet

Description

This is a simple front-end function that determines the location of a machine on the internet specified either by its IP address (a dotted-quad) or by its name (e.g. www.omegahat.org). This determines which of the two C routines to call based on the way the machine is identified.

Usage

getIPPos(ip, db = GeoIP_open(GeoIPData, GEOIP_STANDARD))

Arguments

ip

the IP address or name of a server

db

a reference to the GeoIP database object in which the queries are made

Value

A list with coordinates and country, region and city names, zip code, etc. See GeoIPRecord-class.

Author(s)

Duncan Temple Lang

References

maxmind.com's GeoIP library and database

See Also

GeoIP_record_by_addr and GeoIP_record_by_name

Examples

getIPPos("128.32.135.10")
getIPPos("www.google.com")

omegahat/GeoIP documentation built on Jan. 17, 2024, 6:22 p.m.