我正在运行一个Heroku应用程序,有客户问我“你的服务器IP地址是什么”,我通常通过ping我的域名来找到IP地址。
但在Heroku中,我遇到了两个问题:
1. 当我ping我的自定义域名时,得到的IP地址与ping原始应用程序域名时不同。 2. ping无法通过。
举例:
但在Heroku中,我遇到了两个问题:
1. 当我ping我的自定义域名时,得到的IP地址与ping原始应用程序域名时不同。 2. ping无法通过。
举例:
myhost:~ 1111$ ping fstrk.herokuapp.com
PING us-east-1-a.route.herokuapp.com (23.23.207.27): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
--- us-east-1-a.route.herokuapp.com ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
myhost:~ 1111$ ping dashboard.fstrk.io
PING dashboard.fstrk.io.herokudns.com (54.243.243.251): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
^C
--- dashboard.fstrk.io.herokudns.com ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss
我对网络知识了解不多,可能做错了。获取当前IP地址的正确方法是什么,为什么它们指向同一个应用程序却不同?
us-east-1-a.route.herokuapp.com
,但每个请求它都在频繁更改,不知道为什么。我猜应用正在重新启动,但不确定。 - Shalitha Suranga