How to access/ping a server located on AWS?

前端 未结 10 1376
广开言路
广开言路 2021-01-30 13:49

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

10条回答
  •  执笔经年
    2021-01-30 14:24

    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.

提交回复
热议问题