Wednesday, September 19, 2007

IP Information

Here's the link on how to find the internal and public IP addresses:

http://docs.amazonwebservices.com/AWSEC2/2007-03-01/DeveloperGuide/IP_Information.html

For those short on time...

1) To obtain the internal IP address:

curl http://169.254.169.254/2007-03-01//meta-data/local-ipv4

2) To obtain the public IP address:

curl http://169.254.169.254/2007-03-01//meta-data/public-ipv4

No comments: