With what address should a server located on AWS be accessed?
I've created an AWS instance and installed a web server on it. However the server is not reachable via any of the:
ifconfig
Surprisingly, ssh with [email protected]
works fine.
What might be the problem and how to bind an address to the instance?
To view server detailsOpen the AWS Transfer Family console at https://console.aws.amazon.com/transfer/ . In the navigation pane, choose Servers. Choose the identifier in the Server ID column to see the Server details page, shown following. You can change the server's properties on this page by choosing Edit.
In your security group open -1 to -1 on ICMP for range 0.0.0.0/0 and you'll be able to ping.
See my screenshot for a better view:
Image posted by @emostar below
Updated for 2014 - the current Amazon UI no longer uses numbers for ICMP types, so the existing answer doesn't work anymore.
In your security group:
and you'll be able to ping.
As nowthatsamatt said, you want to allow ICMP from all addreses.
To do this on the command line you can run:
ec2-authorize <group> -P icmp -t -1:-1 -s 0.0.0.0/0
Or if you prefer the AWS Console, this is what it would look like (current as of 2012-09-19):
AWS Console Image
Ping doesn't work with EC2 because ping runs over the ICMP protocol which is blocked in a typical EC2 security group configuration.
Here's a very nifty way to work around this by using tcping (a ping alternative that works over a TCP port):
tcping ec2-174-129-24-92.compute-1.amazonaws.com
tcping ec2-174-129-24-92.compute-1.amazonaws.com 22
It runs on port 80 (the first example) but you can also specify a different port (the second example) to be used to test connectivity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With