IPv6 showing instead of IPv4

I used whatsmyip.com and my IPv6 showed up instead of my IPv4. Is this preferred and if not where's the setting to change it?

That is a client side policy decision of your operating system's resolver (libc). Preferring IPv6 over IPv4, if available, is the correct and intended behaviour, according to the relevant RFCs, so there's nothing to fix.

If you want to know about your external IPv4 address, you should query a service that checks both, e.g. https://ipv6-test.com/.

5 Likes

If you like using terminal command.

curl -4 ifconfig.co

For IPv6 if your internet connection supports it

curl ifconfig.co
2 Likes