There are a lot of different web sites out there that will tell you the location of your IP address. And many have a search funtion wherein you can type in anyone's IP address and find out where they are located.
Most websites that show IP locations use a database containing references to locations that have been collected. Now some of these databases are more accurate, more up to date than others.
In fact, some websites don't update their databases very often, if at all. What is also important to realize is that IP addresses can change opwnership. When that happens, and the website has not updated their database, then the IP address will show an incorrect location, oftentimes much farther away than previously owned IP addresses.
ARIN https://www.arin.net/ is the American Register for Internet Numbers. And this is the best place to find the true location of any IP address on the Internet.
From their website. Overview https://www.arin.net/about_us/overview.html
"Established in December 1997, the American Registry for Internet Numbers (ARIN) is a Regional Internet Registry (RIR) incorporated in the Commonwealth of Virginia, USA. ARIN is one of five (5) RIRs. Like the other RIRs, ARIN:
- Provides services related to the technical coordination and management of Internet number resources in its respective service region. The ARIN service region includes Canada, many Caribbean and North Atlantic islands, and the United States;
- Participates in the global Internet community;
- Facilitates the development of policy decisions made by its members and the stakeholders in its region;
- Is a nonprofit, membership organization;
- Is governed by an executive board elected by its membership.
The best way to find out the most up to date location, and other relevant information, of an IP address is by using their WhoIs https://ws.arin.net/whois function at that web site.