Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I ping herokuapp

Tags:

heroku

ping

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

ping -c 10 my-app.herokuapp.com

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

Why is that?

like image 206
xaxa Avatar asked May 06 '14 21:05

xaxa


1 Answers

Ping uses a different protocol vs opening it in a browser. Ping uses ICMP whereas your browser will be using TCP. It would seem Heroku simply block the ICMP protocol which is fairly common as it can be abused (try pinging www.microsoft.com also)

like image 143
John Beynon Avatar answered Nov 20 '22 19:11

John Beynon