Quite often in my life I need to know what my ip is, very often when I need to know this I'm at a terminal.
My old go-to-site for checking my IP has always been https://minip.no, simply because it's short to type, even though I'm not even norwegian. It works, but it outputs a bunch of annoying html when you do curl https://minip.no, I don't like that.
Therefore, I added a few lines to my nginx config that means I can easily check my IP(for now only on ipv4 though).
server {
server_name ip.hax0r.se;
listen 80 ;
access_log off;
error_log off;
location / {
default_type text/plain;
return 200 "$remote_addr\n";
}
}
This means that I can now check my ip by just doing
0:$ curl ip.hax0r.se
83.140.0.2
You can too, but it does not answer properly on https, this is intentional.