I am trying to ping external links from AWS EC2 instance but result is 100% packet loss.

Amazon.com, Microsoft.com -> 100% packet loss
Google.com -> 100% packet sent

Why my AWS instance can't ping Amazon.com, Microsoft.com but can ping Google.com? Is there anything to configure?

  • Even not able to make java http request to these hosts.. Is there any way to make http request through some java/php client? – Bazooka Aug 17 '16 at 19:25
  • Updated answer. – mt025 Aug 17 '16 at 19:36

This is normal. Currently on my desktop I get the same results. This is because Microsoft and Amazon block ICMP ping requests in their firewalls. However Google allow ICMP ping requests.

Regarding HTTP, I did a curl on microsoft.com and amazon.com

Microsoft reply with:

Your current User-Agent string appears to be from an automated process.

Amazon reply with:

To discuss automated access to Amazon data please contact api-services-support@amazon.com.

From this we can see that Amazon and Microsoft are rejecting non-browser based HTTP(S) connections.

  • I wouldn't be so sure... – Narzard Aug 17 '16 at 19:24
  • I have clarified my answer. I did say that Microsoft and Amazon block these requests, but I never said that google allows them. – mt025 Aug 17 '16 at 19:26
  • You're good. Marked as answer. :) – Narzard Aug 17 '16 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.