So, I often check this in a few ways when bouncing around public internet, but I found today a very useful thing I never knew existed.  Curl has a native script for checking this vs. pulling up google and typing "what is my ip address" or other ways.  I wish I knew this existed since like forever.

Might be useful for systems folk, as typically any linux system I'm on tends to have curl for other things.

[user@host ~]$ curl ifconfig.me
x.x.x.x

[user@host ~]$ curl ifconfig.me/all
ip_addr: x.x.x.x
remote_host: unavailable
user_agent: curl/7.71.1
port: 57676
language:
referer:
connection:
keep_alive:
method: GET
encoding:
mime: */*
charset:
via: 1.1 google
forwarded: x.x.x.x

HTH!

-mb