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:
YSK: thisismyip.com (website to display your IP) had inserted new code to its website that is detected by Kaspersky antivirus and Fortinet as malicious; Here are some alternatives to use instead
6 months ago by beep to c/youshouldknow
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:

Glad somebody else posted it. Glad it still exists. Some of the internet is still hilarious and amazing.
i could see a situation where a host that only speaks IPv4 would need to add my IP to an allow list, and therefore I would need to check what IPv4 address I appear as, even though I am running IPv6.
icanhazip.com
This is the one true answer.
Just an IP, nothing else. And easily curlable.
I have DuckDuckGo set as my default search engine, so I just search for "ip" and Bob's your uncle
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.
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.
icanhaz tools:
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.
#!/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.
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.
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?
I worry less about the service breaking, changing, or otherwise disappearing, over a random website.
EDIT: Also what was said in a sibling comment.
dig -6 +short @resolver2.opendns.com myip.opendns.com AAAA
Note: You have to ensure you are actually contacting the server with IPv6.
This is a service provided by some DNS hosts, with their own special subdomains, and is not universal. They may also require slightly different options.
Other options include:
Google (query for txt record): @ns1.google.com o-o.myaddr.l.google.com
Akaimai (query for txt record): @ns1-1.akamaitech.net whoami.akamai.net
Cloudflare: @1.1.1.1 whoami.cloudflare
Cisco (there are four, as far as can tell): @resolver[1-4].opendns.com myip.opendns.com
…and likely others.
For us Linux users (BTW), this wtfismyip script just dumps a text string. Just save it to /usr/local/bin or some other location in your path and make it executable, and install the lynx text www browser if you don't have it installed already.
There are a lot of ways to do this, but this works and I'm lazy...
root@tux:~# cat $(which wtfismyip)
#!/bin/bash
printf "%s\n" "Your fucking IP address is $(lynx -dump -nolist http://wtfismyip.com/text)."
root@tux:~# wtfismyip
Your fucking IP address is 13.107.226.41.
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
ip.me also works well in the terminal with curl. The default response is plaintext
curl ifconfig.me
Not sure about Linux, but on a Mac you can put it on your clipboard with
curl ifconfig.me | pbcopy
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. 👍
I use thiscomputer.info
It's just text. It shows a bit more than just your IP. And it's easy to remember.
IP chicken is another option
I wrote my own. It's one of the easiest possible services to write.
dnsleaktest.com
ipleak.net
Check your IP and your DNS, all in one.
You can just search ip on ddg and it'll show you
i usually use icanhazip.com, seems to work well enough
Httpbin has a bunch of other useful endpoints as well
Am.i.mullvad.net
@lemmy.world
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.
In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
That's it.
Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.
If you harass or discriminate against any individual member, you will be removed.
If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.
For further explanation, clarification and feedback about this rule, you may follow this link.
Let everyone have their own content.
Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.
Disinformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated. We are not here to ban people who said something you don't like.
Video only posts are responsible for an outsized portion of rules violations. Your post must contain text and meet the requirements of the previous rules.
You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.
For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.
Our icon(masterpiece) was made by @clen15!
go to feed...
@lemmy.world
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.
In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
That's it.
Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.
If you harass or discriminate against any individual member, you will be removed.
If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.
For further explanation, clarification and feedback about this rule, you may follow this link.
Let everyone have their own content.
Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.
Disinformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated. We are not here to ban people who said something you don't like.
Video only posts are responsible for an outsized portion of rules violations. Your post must contain text and meet the requirements of the previous rules.
You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.
For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.
Our icon(masterpiece) was made by @clen15!
go to feed...
this is for all the gooners of lemmy
save