Dubbo消费者启动报错

报错如下:172.16.238.68是我的本机ip
[DUBBO] Failed to start NettyClient TS20160418002/172.16.234.102 connect to the server /172.16.238.68:20880 (check == false, ignore and retry later!), cause: client(url:dubbo://172.16.238.68:20880/com.tuhu.future.dubbo.service.DubboInterface?actives=0&anyhost=true&application=provider-test&async=false&check=false&codec=dubbo&dubbo=2.5.7&generic=false&group=test&heartbeat=60000&interface=com.tuhu.future.dubbo.service.DubboInterface&lazy=false&methods=getAllRecords,sayOk,getUserRecord,getNmae&pid=6872&register.ip=172.16.234.102&remote.timestamp=1531879689779&revision=1.0.0&sent=false&side=consumer&timestamp=1531879711858&version=1.0.0) failed to connect to server /172.16.238.68:20880, error message is:connection timed out: /172.16.238.68:20880, dubbo version: 2.5.7, current host: 172.16.234.102

–情况实际是:我本机启动生产方和消费方没有问题,测试dubbo服务正常,但是别的机器电脑A作为消费方去调用我的生产者服务时,出现以上启动异常。

解决办法:
1.电脑A上去ping 我的ip,能否通过,不能通过的话即两台机器之间不在同一网络下所以问题的根源不在dubbo的配置上,只需要处于同一网络环境下,那么就能避免这个问题;如果是在同一个网络下可能是防火墙问题
2.解决方法:将生产方的防火墙关闭

参考解决:dubbo报错

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值