Usually you go on certain websites that offer this service, you provide the IP to be checked and magically appear (in a not always accurate) the geographical coordinates in terms of latitude and longitude, the city region and any other details which the number of AS (autonomous system) belong to.