Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: location info
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: ToddAndMargo via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 6 May 2024 06:55:21 -0700
On 5/6/24 06:44, ToddAndMargo via curl-users wrote:
> On 5/6/24 03:23, ToddAndMargo via curl-users wrote:
>> Hi All,
>>
>> I love this command:
>> curl --connect-timeout 2 --silent ipinfo.io -o -
>> Give me everything I need to know about my own IP address.
>>
>> What if I want to know this information for a different
>> IP address (which I have extracted from an attack on
>> my firewall log)?
>>
>> I am looking for city and county of the attacker.
>>
>> Many thanks,
>> -T
>>
>
> Figured it out:
>
> $ curl https://ipinfo.io/8.8.8.8 -o -
> {
> "ip": "8.8.8.8",
> "hostname": "dns.google",
> "anycast": true,
> "city": "Mountain View",
> "region": "California",
> "country": "US",
> "loc": "37.4056,-122.0775",
> "org": "AS15169 Google LLC",
> "postal": "94043",
> "timezone": "America/Los_Angeles",
> "readme": "https://ipinfo.io/missingauth"
>
just
curl ipinfo.io/8.8.8.8 -o -
will do.
Date: Mon, 6 May 2024 06:55:21 -0700
On 5/6/24 06:44, ToddAndMargo via curl-users wrote:
> On 5/6/24 03:23, ToddAndMargo via curl-users wrote:
>> Hi All,
>>
>> I love this command:
>> curl --connect-timeout 2 --silent ipinfo.io -o -
>> Give me everything I need to know about my own IP address.
>>
>> What if I want to know this information for a different
>> IP address (which I have extracted from an attack on
>> my firewall log)?
>>
>> I am looking for city and county of the attacker.
>>
>> Many thanks,
>> -T
>>
>
> Figured it out:
>
> $ curl https://ipinfo.io/8.8.8.8 -o -
> {
> "ip": "8.8.8.8",
> "hostname": "dns.google",
> "anycast": true,
> "city": "Mountain View",
> "region": "California",
> "country": "US",
> "loc": "37.4056,-122.0775",
> "org": "AS15169 Google LLC",
> "postal": "94043",
> "timezone": "America/Los_Angeles",
> "readme": "https://ipinfo.io/missingauth"
>
just
curl ipinfo.io/8.8.8.8 -o -
will do.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Computers are like air conditioners. They malfunction when you open windows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2024-05-06