0
点赞
收藏
分享

微信扫一扫

SPDZ多台机器链接报错: what(): cannot connect from host_name.novalocal to [IP_ADRESS]:7071 after 1 attempts

老牛走世界 2022-04-22 阅读 25

@[TOC](SPDZ多台机器链接报错: what(): cannot connect from host_name.novalocal to [IP_ADRESS]:7071 after 1 attempts in one minute because No route to host.)


错误信息

terminate called after throwing an instance of ‘std::runtime_error’
what(): cannot connect from host_name.novalocal to [IP_ADRESS]:7071 after 1 attempts in one minute because No route to host. https://mp-spdz.readthedocs.io/en/latest/troubleshooting.html#connection-failures has more information on port requirements.
Aborted.


提示:以下是本篇文章正文内容,下面案例可供参考

一、计算指令

./semi-party.x -N 2 0 -h [IP1] -pn 7070 mpc_sum
./semi-party.x -N 2 1 -h [IP2] -pn 7070 mpc_sum

二、问题原因

IP2 主机的防火墙更没有关闭,导致端口不通
可以使用一下命令验证

telnet [ip2] [端口号]    #换自己的ip和端口

出现 No route to host 则表示不通。
查看防火墙是否开启

systemctl status firewalld

如果开着,关了就好了

systemctl stop firewalld
举报
0 条评论