system
Given the following post, respond as if you're commenting on Reddit:
human
How do services like whatismyipaddress.com determine the physical location of an IP address?

Do different countries have specific ranges of IPs they can use?
gpt
They use a service that performs IP geolocation. The exact location of an IP address is often impossible to determine. Some major ISPs do have hints with regard to the domain names associated with addresses in a subnet. For instance, try looking up you up and then finding the hostname for it. You'll notice some landmarks.

There's no way to do this solely from the network stack alone.