this post was submitted on 28 Dec 2023
45 points (95.9% liked)

Asklemmy

43811 readers
853 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_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
45
FOSS IP/ISP detector (programming.dev)
submitted 10 months ago* (last edited 10 months ago) by AnActOfCreation@programming.dev to c/asklemmy@lemmy.ml
 

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
[โ€“] user224@lemmy.sdf.org 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

[โ€“] jet@hackertalks.com 8 points 10 months ago (1 children)
[โ€“] dotslashme@infosec.pub 4 points 10 months ago* (last edited 10 months ago) (1 children)
[โ€“] ArtVandelay@lemmy.world 1 points 10 months ago* (last edited 10 months ago)

This has been my go-to for years

curl -s icanhazip.com
[โ€“] Valmond@lemmy.mindoki.com 4 points 10 months ago (1 children)

What do you want to use it for?

[โ€“] dave881@lemmy.world 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)

[โ€“] _s0me_guy_@lemmy.ml 3 points 10 months ago (1 children)

ifconfig.me you can even curl it

[โ€“] nutbutter@discuss.tchncs.de 3 points 10 months ago* (last edited 10 months ago)

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

[โ€“] eco_game@discuss.tchncs.de 2 points 10 months ago* (last edited 10 months ago)

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