Any news on how to use this method? I am facing the same problem as OP:
Home Assistant
- Core2023.12.2
- Supervisor2023.11.6
- Operating System11.2
- Frontend20231208.2
EDIT: for those newbies like me that just wanted to retrieve the public IP of their Home Assistant device, I will post how I solved it. In my case, I had a Raspberry Pi running Home Assistant OS, so I went to the CLI (the black screen that you see if you plug in a monitor to your device, and with which you may interact using a keyboard), typed login
to get a root command line (see this reddit post), and typed the command curl https://ifconfig.me/
(see this post). The result was the public IP I needed (in my case, to configure an external database server).