this post was submitted on 28 Dec 2023
48 points (96.2% liked)

Asklemmy

43858 readers
1659 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
48
FOSS IP/ISP detector (programming.dev)
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

Does anyone know of a good FOSS IP detector? I'm thinking of something like https://www.whatismyisp.com/ or https://whatismyipaddress.com/. Like how https://librespeed.org/ is a good alternative to https://www.speedtest.net/.

Thanks in advance!

EDIT: Thanks for the answers everyone! Looks like we have...

all 11 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 11 points 10 months ago

Possibly ident.me
https://github.com/pcarrier/ident.me

It's also used by Neofetch by default.
https://ident.me/ returns just the IP
https://ident.me/json returns more info in JSON format
https://www.ident.me/ has a nicer UI

[โ€“] [email protected] 8 points 10 months ago (1 children)
[โ€“] [email protected] 4 points 10 months ago (1 children)

What do you want to use it for?

[โ€“] [email protected] 4 points 10 months ago* (last edited 10 months ago) (1 children)
[โ€“] [email protected] 1 points 10 months ago* (last edited 10 months ago)

This has been my go-to for years

curl -s icanhazip.com
[โ€“] [email protected] 3 points 10 months ago

Not sure exactly what you want, but like this may be what you want. https://github.com/PeterDaveHello/ipinfo.tw

There are simpler solutions that are just a php script on your web server if you're only interested in IP address (I couldn't find a good example quickly on mobile)

[โ€“] [email protected] 3 points 10 months ago (1 children)

ifconfig.me you can even curl it

[โ€“] [email protected] 3 points 10 months ago* (last edited 10 months ago)

It does not mention anything about IPv6, when connecting via IPv4.

[โ€“] [email protected] 2 points 10 months ago* (last edited 10 months ago)

I don't know if it's FOSS, but I always use ipinfo.io