📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Add ISP details to the IP lookup tool
Blue Mouse9bed8baf2bc3
diff --git a/backend/apps/cloud/src/common/utils.ts b/backend/apps/cloud/src/common/utils.tsindex a896ee980..c5bfc89b5 100644--- a/backend/apps/cloud/src/common/utils.ts+++ b/backend/apps/cloud/src/common/utils.ts@@ -336,6 +336,10 @@ interface ExtendedGeoDetails {latitude: number | nulllongitude: number | nulltimezone: string | null+ isp: string | null+ organization: string | null+ userType: string | null+ connectionType: string | null}export const getExtendedGeoDetails = (ip: string): ExtendedGeoDetails => {@@ -354,9 +358,15 @@ export const getExtendedGeoDetails = (ip: string): ExtendedGeoDetails => {latitude: null,longitude: null,timezone: null,+ isp: null,+ organization: null,+ userType: null,+ connectionType: null,}}+ const traits = data.traits ?? {}+return {country: data.country?.iso_code || null,countryName: data.country?.names?.en || null,@@ -369,6 +379,10 @@ export const getExtendedGeoDetails = (ip: string): ExtendedGeoDetails => {latitude: data.location?.latitude || null,longitude: data.location?.longitude || null,timezone: data.location?.time_zone || null,+ isp: traits.isp || null,+ organization: traits.organization || null,+ userType: traits.user_type || null,+ connectionType: traits.connection_type || null,}}diff --git a/backend/apps/cloud/src/tools/dto/ip-lookup.dto.ts b/backend/apps/cloud/src/tools/dto/ip-lookup.dto.tsindex b3170e016..03a5e2fcc 100644--- a/backend/apps/cloud/src/tools/dto/ip-lookup.dto.ts+++ b/backend/apps/cloud/src/tools/dto/ip-lookup.dto.ts@@ -48,6 +48,26 @@ export class IpLookupResponseDto {@ApiPropertyOptional({ description: 'Timezone (IANA format)' })timezone: string | null+ @ApiPropertyOptional({ description: 'Internet Service Provider name' })+ isp: string | null++ @ApiPropertyOptional({+ description:+ 'Organization associated with the IP address (may differ from ISP)',+ })+ organization: string | null++ @ApiPropertyOptional({+ description:+ 'User type (e.g. residential, business, hosting, cellular, school)',+ })+ userType: string | null++ @ApiPropertyOptional({+ description: 'Connection type (e.g. cable/DSL, cellular, corporate)',+ })+ connectionType: string | null+@ApiPropertyOptional({ description: 'Whether the country is in the EU' })isInEuropeanUnion: booleandiff --git a/backend/apps/cloud/src/tools/tools.service.ts b/backend/apps/cloud/src/tools/tools.service.tsindex 55dd07ba6..38ae3b5fb 100644--- a/backend/apps/cloud/src/tools/tools.service.ts+++ b/backend/apps/cloud/src/tools/tools.service.ts@@ -52,6 +52,10 @@ export class ToolsService {latitude: geo.latitude,longitude: geo.longitude,timezone: geo.timezone,+ isp: geo.isp,+ organization: geo.organization,+ userType: geo.userType,+ connectionType: geo.connectionType,isInEuropeanUnion: geo.country ? EU_COUNTRIES.has(geo.country) : false,ipVersion,}diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.tsindex 53138979f..3eb66d8d5 100644--- a/web/app/api/api.server.ts+++ b/web/app/api/api.server.ts@@ -2707,6 +2707,10 @@ interface IpLookupResponse {latitude: number | nulllongitude: number | nulltimezone: string | null+ isp: string | null+ organization: string | null+ userType: string | null+ connectionType: string | nullisInEuropeanUnion: booleanipVersion: 4 | 6}diff --git a/web/app/routes/tools.ip-lookup.tsx b/web/app/routes/tools.ip-lookup.tsxindex 3f78db849..bf20e467f 100644--- a/web/app/routes/tools.ip-lookup.tsx+++ b/web/app/routes/tools.ip-lookup.tsx@@ -20,7 +20,7 @@ import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'export const meta: MetaFunction = () => {const title = 'Free IP Address Lookup tool - What is my IP address?'const description =- 'Find your public IP address instantly and look up any IPv4 or IPv6 for detailed geolocation data—country, region, city, coordinates, timezone, and EU status—plus an interactive map. Free, no registration or limits.'+ 'Find your public IP address instantly and look up any IPv4 or IPv6 for detailed geolocation and network data—country, region, city, coordinates, timezone, ISP, organization, connection type, and EU status—plus an interactive map. Free, no registration or limits.'return [...getTitle(title),...getDescription(description),@@ -171,6 +171,16 @@ const FAQ_ITEMS = [answer:'ASN (Autonomous System Number) is a unique identifier assigned to networks on the internet. It helps identify which organization owns and operates a particular block of IP addresses, such as an ISP, company, or university.',},+ {+ question: 'What is the difference between ISP and organization?',+ answer:+ 'The ISP (Internet Service Provider) is the company that delivers internet connectivity to the IP address, such as Comcast, Vodafone, or Deutsche Telekom. The organization is the entity that has been allocated or is using that IP block — often the same as the ISP, but for corporate, hosting, or government IPs it can be a specific company, data center provider, or institution.',+ },+ {+ question: 'What do user type and connection type mean?',+ answer:+ 'User type describes the kind of network behind the IP address — common values include residential, business, cellular, hosting, school, government, and library. Connection type describes the underlying network technology, such as Cable/DSL, Cellular, Corporate, Dialup, or Satellite. Together they help identify whether traffic is coming from a home user, a mobile network, a data center, or an enterprise.',+ },{question: 'What is the difference between IPv4 and IPv6?',answer:@@ -218,6 +228,34 @@ function DataRow({)}+function SectionHeading({ children }: { children: React.ReactNode }) {+ return (+ <Text+ as='h3'+ size='xxs'+ weight='semibold'+ colour='muted'+ tracking='wide'+ className='mb-1 uppercase'+ >+ {children}+ </Text>+ )+}++const formatTraitValue = (value: string | null | undefined): string | null => {+ if (!value) return null+ return value+ .split(/[_\s]+/)+ .filter(Boolean)+ .map((word) =>+ /^[A-Z0-9/]+$/.test(word)+ ? word+ : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(),+ )+ .join(' ')+}+export default function IpLookup() {const { userIp, initialData } = useLoaderData<typeof loader>()const fetcher = useFetcher<typeof action>()@@ -279,8 +317,8 @@ export default function IpLookup() {IP Address Lookup</Text><Text as='p' size='lg' colour='muted' className='mt-4'>- Find your IP address and get detailed geolocation data for any- public IP.+ Find your IP address and get detailed geolocation and network+ data—ISP, organization, and connection type—for any public IP.</Text><div className='mt-10'>@@ -344,41 +382,65 @@ export default function IpLookup() {</div></div>- <dl>- <DataRow- label='IP Version'- value={data.ipVersion ? `IPv${data.ipVersion}` : null}- />- <DataRow- label='Country'- value={data.countryName}- secondary={data.country}- />- <DataRow- label='Region'- value={data.region}- secondary={data.regionCode}- />- <DataRow label='City' value={data.city} />- <DataRow label='Postal Code' value={data.postalCode} />- <DataRow- label='Continent'- value={data.continentName}- secondary={data.continentCode}- />- <DataRow- label='Coordinates'- value={- hasCoordinates- ? `${data.latitude?.toFixed(4)}, ${data.longitude?.toFixed(4)}`- : null- }- />- <DataRow label='Timezone' value={data.timezone} />- {data.isInEuropeanUnion && (- <DataRow label='EU Member' value='Yes' />- )}- </dl>+ <div className='space-y-6'>+ <div>+ <SectionHeading>Location</SectionHeading>+ <dl>+ <DataRow+ label='IP Version'+ value={data.ipVersion ? `IPv${data.ipVersion}` : null}+ />+ <DataRow+ label='Country'+ value={data.countryName}+ secondary={data.country}+ />+ <DataRow+ label='Region'+ value={data.region}+ secondary={data.regionCode}+ />+ <DataRow label='City' value={data.city} />+ <DataRow label='Postal Code' value={data.postalCode} />+ <DataRow+ label='Continent'+ value={data.continentName}+ secondary={data.continentCode}+ />+ <DataRow+ label='Coordinates'+ value={+ hasCoordinates+ ? `${data.latitude?.toFixed(4)}, ${data.longitude?.toFixed(4)}`+ : null+ }+ />+ <DataRow label='Timezone' value={data.timezone} />+ {data.isInEuropeanUnion && (+ <DataRow label='EU Member' value='Yes' />+ )}+ </dl>+ </div>++ <div>+ <SectionHeading>Network</SectionHeading>+ <dl>+ <DataRow label='ISP' value={data.isp} />+ <DataRow+ label='Organization'+ value={data.organization}+ />+ <DataRow+ label='User Type'+ value={formatTraitValue(data.userType)}+ />+ <DataRow+ label='Connection Type'+ value={formatTraitValue(data.connectionType)}+ />+ </dl>+ </div>+ </div></section>{hasCoordinates && (@@ -417,8 +479,9 @@ export default function IpLookup() {Wondering "what is my IP address?" Our free IP lookup toolinstantly shows your public IP address and provides detailedgeolocation data including country, city, region, coordinates,- and timezone. You can also look up any IPv4 or IPv6 address to- find its location and network information.+ and timezone—plus network details like ISP, organization, user+ type, and connection type. You can also look up any IPv4 or IPv6+ address to find its location and network information.</Text><div className='mt-12 grid gap-x-12 gap-y-10 md:grid-cols-2'>@@ -548,6 +611,25 @@ export default function IpLookup() {- Whether the address is IPv4 or IPv6</Text></li>+ <li>+ <Text colour='muted'>+ <Text as='span' weight='semibold' colour='inherit'>+ ISP & organization+ </Text>{' '}+ - The internet service provider and the organization+ operating the IP block+ </Text>+ </li>+ <li>+ <Text colour='muted'>+ <Text as='span' weight='semibold' colour='inherit'>+ User & connection type+ </Text>{' '}+ - Whether the IP belongs to a residential, business,+ cellular, or hosting network, and the underlying+ connection (Cable/DSL, cellular, corporate, etc.)+ </Text>+ </li><li><Text colour='muted'><Text as='span' weight='semibold' colour='inherit'>