Add a method to get public IP address, covers EC2 and SCE.