this works if you happen to have a domain name, and don't want to type in the IP; or if https://api.ipify.org/ doesn't return the correct IP for you ;)
Oh did not see that you are returning the v6 address if the v4 could not be resolved. Imho IP v6 is not supported by the server. I'm going to remove this fallback
this works if you happen to have a domain name, and don't want to type in the IP; or if
https://api.ipify.org/
doesn't return the correct IP for you ;)