I know that a lot of VPN users have it as a homepage to their browser, that is why I wanted to publish this warning.
You can replace it with:
This is the one true answer.
Just an IP, nothing else. And easily curlable.
There’s also https://ip4.me/, nice and simple ipv4 test.
(it also does other IP lookups via https://ip6.me/, https://ip6only.me/, https://whatismyv6.com/)
My goto has always been https://www.whatismyip.com/, or https://www.wimi.com/ for short.
There is also ifconfig.me which works amazingly on the command like with
curl ifconfig.meThe same works with ipinfo.io, it’s what I usually use.
Awesome, good to know. Nice it has more info in a JSON blob.
At that point just run ifconfig
That won’t tell you the public IP unless you’re on a directly-connected machine
That’s not how this works. That’s not how any of this works.
I always use check.torproject.org. If I’m not on Tor, it gives me my IP, if I am on Tor it verifies that. Good for both.
curl ifconfig.meNot sure about Linux, but on a Mac you can put it on your clipboard with
curl ifconfig.me | pbcopyxh ifconfig.me | wl-copy👍
Oookay, I guess it detects the user agent and only sends the IP number when it detects curl. Using xh did not work as intended.
Huh. Is it going by user-agent or something? Weird.
Our own tiny one goes by the Accept header. If xh sets that to text/html you’ll get an HTML webpage though.
Some sites go by that, some go by user agent. I believe xh can fake it’s user agent, if I’m not mistaken.
A good compromise would be to go by known user agents, but also heed the accept header. 👍
Is it malicious code hosted on the website? Or are they saying that visiting that site is an indicator of compromise because they’ve malware commonly visiting that site?
Looks like the domain registration expired, according to https://lookup.icann.org/en/lookup
Fortinet marked the website as “malicious”, but it doesn’t seem to give an explanation as to why it’s been given that classification (looked up here: https://www.fortiguard.com/webfilter)
Kasperky wanted an account (and possibly a subscription) to look up the website and I’m not going to give them any of my information so I’m not sure if they gave an explanation as to why the website is flagged.
Visiting https://thisismyip.com/ as of now just redirects to a Namecheap landing page so I doubt there’s any actual malware on the website. I think Fortinet and Kaspersky preemptively marked it for when a malicious actor picks up the name and starts hosting actual viruses.
Hosted on the website.
Glad somebody else posted it. Glad it still exists. Some of the internet is still hilarious and amazing.


I’ve been using wgetip.com for over a decade now
🤣
Was expecting a robotic voice, is this AI?
It exists before AI was a thing. Just a dude recording himself and making a software that plays it relatively smoothly.
The domain was registered in 2012
#!/usr/bin/sh dig -4 +short @resolver2.opendns.com myip.opendns.com#!/usr/bin/pwsh Resolve-DnsName -Server resolver2.opendns.com -Name myip.opendns.com -Type A | % { echo $_.IPAddress }There should be an IPv6 resolver, but I don’t remember and am currently unable to test. My PowerShell skills are also effectively non-existent.
Neat, how can you check IPv6? I was able to get my IPv4 address by querying with an A record, but tried with AAAA which doesn’t respond with an answer.
dig -6 +short .opendns.com myip.opendns.com AAAANote: You have to ensure you are actually contacting the server with IPv6.
Ahh yeah, works with
@resolver2.opendns.comso I guess my DNS resolver isn’t supporting IPv6 or something like that?
A simpler and easy to memorize alternative:
curl ifconfig.meThat still relies on an external website, whereas dig uses just DNS
I saw it used in another comment, and am already aware of the use of curl for such a task, but choose to query DNS services instead—especially in scripts.
but choose to query DNS services instead—especially in scripts.
Why? What advantages do you get?
I worry less about the service breaking, changing, or otherwise disappearing, over a random website.
EDIT: Also what was said in a sibling comment.
In order to connect to a site like wtfismyip.com you have to do a dns query for the IP address of the server, then query the http port on that IP address, but what if instead, that first dns query gave the answer to your question?
You can just search ip on ddg and it’ll show you
It’s a good old service, but unfortunately it’s so old that it doesn’t support IPv6 connections
I just checked with curl and it showed me my IPv6 IP
i usually use icanhazip.com, seems to work well enough
We have a little one, in case it’s useful. https://ip.brightfur.net/ Super simple. Works with curl too (autodetects whether to give you plain text or an HTML webpage).
It’s like 20 lines of PHP and most of that’s HTML.
– Frost






