0

I have one small server on EC2.

Let's say I cURL facebook.com. What IP will facebook see as the "client address"?

Is it random?

1 Answer 1

0

If you haven't assigned an elastic IP to your instance, the IP will change every time you reboot the instance, however it will not change upon every outgoing request.

To be more specific towards your question: No, the address will not be random, it will be taken from a pool of available addresses when your instance is started.

See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html for more info.

To see your external IP from the command line you can run:

curl ifconfig.me
2
  • 1
    Can also just look in the console for the currently assigned address. It'll also be the same as the IP used to connect to the actual instance.
    – Nathan C
    Jun 17, 2013 at 11:47
  • Good point. The reason I provided the cURL solution is because it was mentioned in his question.
    – ohaal
    Jun 17, 2013 at 12:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .