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?

Alex
  • 8,471
  • 26
  • 75
  • 99

1 Answers1

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
ohaal
  • 2,282
  • 1
  • 20
  • 21
  • 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 '13 at 11:47
  • Good point. The reason I provided the cURL solution is because it was mentioned in his question. – ohaal Jun 17 '13 at 12:27