IP-based geolocation is the process of mapping an IP address to a geographical location. This tool locates a given IP address(such as "126.96.36.199") or a hostname (such as "example.com") to its corresponding country, city, continent and latitude/longitude.
For IP based geolocation, a database from a geolocation provider is used. The provider collects information for various IP addresses and builds a database which contains mappings from IP addresses to their corresponding geographical region. A primary source for IP addresses for these providers is data obtained from the Regional Internet Registries, which are organizations that manage allocations of IP addresses to different organizations. This data is combined along with other sources of data, such as those obtained from scanning whois records of various IP addresses, information collected from ISPs, etc.
The locations identified by this tool are usually accurate within a radius of 50-250 kilometers.