-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发起RPC请求失败| 可能ip地址问题 #37
Comments
@578223592 我使用的是centos7,回环地址应该都是127.0.0.1 —> 127.255.255.254吧?不明白为啥会连接失败 |
@Gump5236 我刚测试了一下,是可以运行的,我怀疑可能是你的防火墙之类的设置是否有问题,也许你可以尝试下一个最简单的tcp服务器和客户端(网上很多),看下能否成功。 |
请问你解决了吗?我也是centos,一摸一样的问题 |
@tantancoding 并未解决 |
能否加个v 私聊一下, |
我也是centos的系统。我把callFriendService.cpp里string ip改为127.0.0.1后也不行。但是我看运行provider后显示的是服务器的私网ip,我就改成一样了。不知道有没有帮助,反正我这样是可以的。 |
对的,把callFriendService.cpp里string ip改成运行provider后显示的ip就可以了 |
在执行完./provider后,在另一个终端执行。/consumer出现RPC请求失败
./provider后的ip是127.0.0.1但是./consumer的ip是127.0.1.1,是不能重开终端运行吗
The text was updated successfully, but these errors were encountered: