How can software determine the public and private IP addresses of the Amazon EC2 instance that it is running on?