There is tool for see
my ip country,
my ip city, and other geo information. This tool detecting your real IP if you using proxy, and fetching data about it. You can read related article here -
what is my ip location.
Geolocation is the identification of the real-world geographic location of an Internet-connected computer, mobile device, website visitor or other.
All IP addresses (or whole subnetworks and ip address ranges) are linked with some ISP and ISP have some location, thats why it's possible to find
my geo ip position and
my isp information.
IP address geolocation data can include information such as country, region, city, postal/zip code, latitude, longitude and timezone.
Geolocation may refer to the practice of assessing the location, or to the actual assessed location, or to locational data.
The automated discovery of user person/organisation/city-level geolocation information based on IP addresses by traceroute, pings, and a combination of other tools and methods is far more advanced.
It is dependent on the pre-analysis of the entire IP address space.
There are more than 4 billion possible IP addresses, and detailed analysis of each of them is a Herculean task, especially in light of the fact that IP addresses are constantly being assigned, allocated, reallocated, moved and changed due to routers being moved, enterprises being assigned IP addresses or moving, and networks being built or changed.
You can try to find my ip address trow using operation system tools, but you havn't geo database, thats why it's can be usefull for you.