My application (C++) runs on an ECS server inside the Alibaba Cloud.
It needs to know its public address, but on the network only the private IPS is visible (similar to AWS, Google Cloud etc.)
Is there a way to automatically detect the public IP ?
There are several methods to determine your public IP address: