loading...

Discussion on: eyep.dev - Coolest way to get your IP address

Collapse
elmuerte profile image
Michiel Hendriks

I prefer ifconfig.co

Why? because:

curl https://ifconfig.co/
Collapse
rkeene profile image
Roy Keene

Two things:

  1. ifconfig.co is more functional but less cool;
  2. ifconfig.co doesn't support querying IPv6 or IPv4 explicitly -- if you have IPv6, it will return the IPv6 address and not the IPv4 address, which sometimes is not what you want. Try this out: curl http://rkeene.org/whatismyip; curl http://ipv4.rkeene.org/whatismyip; curl http://ipv6.rkeene.org/whatismyip
Collapse
timothycole profile image
Timothy Cole

Can't you use curl -4 or curl -6 to query v4 or v6?

Collapse
mitchartemis profile image
Mitch Stanley

I use this too! I even have an alias which I use all of the time.

alias whatsmyip='curl ifconfig.co'
Collapse
talktold profile image
LD

ifconfig is a convenient one. We will add the curl capability soon ✌️