https://a1.easemob.com:443: No route to host 经常遇到这种问题

使用场景:
定时获取环信的消息记录。

经常遇到链接不上服务器的问题。

错误日志
java.net.NoRouteToHostException) caught when connecting to {s}->https://a1.easemob.com:443: No route to host
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:632)
Retrying connect to {s}->https://a1.easemob.com:443
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:624)
I/O exception (java.net.NoRouteToHostException) caught when connecting to {s}->https://a1.easemob.com:443: No route to host
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:632)
Retrying connect to {s}->https://a1.easemob.com:443
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:624)
I/O exception (java.net.NoRouteToHostException) caught when connecting to {s}->https://a1.easemob.com:443: No route to host
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:632)
Retrying connect to {s}->https://a1.easemob.com:443
che.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:632)
Retrying connect to {s}->https://a1.easemob.com:443
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:624)
I/O exception (java.net.NoRouteToHostException) caught when connecting to {s}->https://a1.easemob.com:443: No route to host
[INFO ] 2015-10-20 23:29:40 Method: org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:632)
Retrying connect to {s}->https://a1.easemob.com:443
共2个回复

ysykzheng

2015-10-21 17:29

是centos。阿里云的服务器。

beyond

2015-10-21 18:02

1、查看防火墙 2、tomcat端口是否屏蔽

beyond

2015-10-21 17:04

这是Linux系统下面的?看上去是虚拟机吧,说的是网段不对, 虚拟机的网络是虚拟的,有自己的设置,你自己设置 IP 很容易错的。 如果你的实体机及有局域网和 DHCP 服务,那么直接 DHCP 就可以了。
点击此处继续提问与开发者们互动

申请试用

提交后工作人员会尽快与您联系进行功能演示
技术咨询已转移到管理后台,请先登录

即时通讯云使用者请在应用详情页面咨询
客服云使用者请进入管理员模式咨询

×

在线咨询

电话咨询

技术咨询

免费试用