Why I can’t I ping an EC2 instance Public IP Address

Ping is a computer network administration software utility used to test the reachability of a host on an Internet Protocol network.

Here is an example, I have an Linux EC2 Instance say, private IP is, public IP is

Inside the instance, I could successfully ping its private IP( and localhost. However, I cannot ping its public IP(

Why can’t I ping an EC2 instance public IP from inside of instance itself? Whenever you are faced with this issue, apply the solution below by adding the following rule to the security group of the instance.

Simply added the EIP of the instance to allow echo reply and request to the Public IP

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x