为什么我不能ping通herokuapp [英] Why can't I ping herokuapp

查看:301
本文介绍了为什么我不能ping通herokuapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在heroku上运行的应用程序,比如 my-app.herokuapp.com 。但是,如果我键入

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

ping -c 10 my-app.herokuapp.com

在Mac终端中,它表示请求超时,尽管应用程序正在运行,我可以打开它在我的浏览器中。

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

为什么会这样?

推荐答案

Ping使用不同的协议与在浏览器中打开它。 Ping使用ICMP,而您的浏览器将使用TCP。看起来Heroku只是简单地阻止了ICMP协议,这是相当常见的,因为它可能会被滥用(请尝试ping www.microsoft.com)

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)

这篇关于为什么我不能ping通herokuapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆