Get Geographic $2.00 / 1,000 calls

Distance between IPs

What this tool does

This tool measures the straight-line distance between two internet addresses. It helps you understand how far apart two users or servers might be in real-world geographic space. This is useful for planning network performance or analyzing regional user distribution.

When to use it

  • Estimating latency differences between users in different cities.
  • Analyzing the geographic spread of your application's audience.
  • Verifying that users are connecting from the expected regions.

What to expect

You will get a single number showing the distance in kilometers between the two locations. If the addresses cannot be found or are invalid, you will receive an empty result.

Limitations

  • The result is an approximation based on the location recorded for the internet address, not the exact physical location.
  • Some internet addresses do not have a specific geographic location attached to them.
  • The calculation assumes a straight line and does not account for roads or travel routes.

When it fails

  • One or both addresses are not in a valid internet address format.
  • The system cannot find a geographic location for one or both addresses.
  • The address format is valid but the location data is missing or corrupted.

Good to know

  • The result is always returned as a number representing kilometers.
  • If no location data is available, the result field will be empty rather than showing a distance of zero.

Input data

Parameter Required Example Description
ip1 Yes 95.23.100.79 Enter the first IP address as plain text (e.g., '95.23.100.79'). This field is required.
ip2 Yes 88.190.16.36 Enter the second IP address as plain text (e.g., '88.190.16.36'). This field is required.

Output data

Field Description
result Returns the distance in kilometers as a text number (e.g., '1205.45') if both IP addresses are valid and their locations are found. Returns empty text if the inputs are invalid or locations cannot be determined.