Every now and then, you run into a situation where you just need to know one thing:
What is my public IP address right now?
Seems simple—but when you need to automate it (scripts, monitoring, firewall updates, etc.), it’s not always as straightforward as opening a browser and Googling “what’s my IP.”
I ran into this issue at a client who had two different ISP providing internet services to their office. This means that when pushing SQL Server backups directly to an Azure blob storage account, I had to dynamically determine what public IP address traffic was traversing at the current moment in time.