Why I can not ping a hero

I have an application running on heroku, say my-app.herokuapp.com . However, if I print

 ping -c 10 my-app.herokuapp.com 

in the Mac terminal, it says Request timeout , although the application is running, I can open it in my browser.

Why is this?

+6
heroku ping
source share
1 answer

Ping uses a different protocol and opens it in a browser. Ping uses ICMP, while your browser will use TCP. It would seem that Heroku simply blocks the ICMP protocol, which is quite common as it can be abused (also try pinging www.microsoft.com)

+10
source share

All Articles