Had a unique scenario where I needed to find the public WAN IP address of a remote Unifi Switch that was connected to our cloud controller. If you open up the debug terminal with the Unifi Controller and then type in the following command, it will give you the IP address.
curl ipecho.net/plain; echo
Thanks to Unifi forums for the tip.