In this tutorial you will learn how to deploy an SSH server on Ubuntu 20.04 Server/Desktop.
This is a companion discussion topic for the original entry at https://linuxconfig.org/ubuntu-20-04-ssh-server
Just a suggestion from a know-it-all who likes to take shortcuts and type as little as possible… when obtaining your own WAN IP address you can just use Curl command. It even works on the website that you suggested.
curl ifconfig[.]me
curl api[.]ipify[.]org
Both yield the same results.