简体   繁体   English

ASP.NET 内核 | gRPC “启动 gRPC 调用时出错:无法建立连接,因为目标机器主动拒绝了它。”

[英]ASP.NET Core | gRPC “Error starting gRPC call: No connection could be made because the target machine actively refused it.”

I have a local gRPC client and a remote gRPC server.我有一个本地 gRPC 客户端和一个远程 gRPC 服务器。 Local gRPC client is running on IIS.本地 gRPC 客户端在 IIS 上运行。 Remote gRPC server runs on Kestrel inside Ubuntu OS.远程 gRPC 服务器在 Ubuntu 操作系统内的 Kestrel 上运行。 When I'm trying to make a gRPC call from client to server I'm getting RpcException with the following message "Error starting gRPC call: No connection could be made because the target machine actively refused it."当我尝试从客户端到服务器进行 gRPC 调用时,我收到RpcException并显示以下消息"Error starting gRPC call: No connection could be made because the target machine actively refused it." . .


  • The firewall on the gRPC server machine is disabled. gRPC 服务器计算机上的防火墙已禁用。
  • I have successfully intercepted incoming network packages on gRPC server with tcpdump and they seem ok.我已经使用tcpdump成功拦截了 gRPC 服务器上的传入网络包,它们看起来还可以。 That means packages are reaching server machine and they are blocked by the application.这意味着包正在到达服务器机器并且它们被应用程序阻止。
  • I can access index page of gRPC server from gRPC client machine using browser.我可以使用浏览器从 gRPC 客户端机器访问 gRPC 服务器的索引页面。
  • gRPC server Kestrel uses a self-signed SSL certificate. gRPC 服务器 Kestrel 使用自签名 SSL 证书。

I have used port 31700 for gRPC server.我已将端口 31700 用于 gRPC 服务器。 Now I changed it to another one, and it works.现在我将其更改为另一个,并且可以正常工作。 I will appreciate some explanation of why is this port cannot be used for listening.我会很感激为什么这个端口不能用于监听的一些解释。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有DataService的ASP.Net 4.5:无法建立连接,因为目标计算机主动拒绝了127.0.0.1 - ASP.Net 4.5 with DataService: No connection could be made because the target machine actively refused it 127.0.0.1 SignalR错误“由于目标机器主动拒绝连接,因此无法建立连接” - SignalR Error “No connection could be made because the target machine actively refused it” 错误:无法建立连接,因为目标机器主动拒绝它 - Error: No connection could be made because the target machine actively refused it 收到错误消息“由于目标计算机主动拒绝连接而无法建立连接” - Geting Error “No connection could be made because the target machine actively refused it” 无法建立连接,因为目标计算机主动拒绝了它216.58.212.106:443 - No connection could be made because the target machine actively refused it 216.58.212.106:443 '由于目标机器主动拒绝它,因此无法建立连接 - 'No connection could be made because the target machine actively refused it 由于目标计算机主动拒绝连接,因此无法建立连接-客户端 - No connection could be made because the target machine actively refused it - client side 无法建立连接,因为目标计算机主动拒绝了127.0.0.1:8000 - No connection could be made because the target machine actively refused it 127.0.0.1:8000 由于目标计算机主动拒绝连接,因此无法建立连接-套接字程序 - No connection could be made because the target machine actively refused it - Socket Program 没有连接,因为目标机器主动拒绝它为什么? - No connection could be made because the target machine actively refused it why?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM