简体   繁体   English

无法通过信号R访问信号R自托管Windows服务客户端c Sharp

[英]Signal R Self Hosting windows service is not accessible through signal R Client c sharp

I have created a windows service, and tried to host a signal r in it. 我创建了Windows服务,并尝试在其中托管信号r。 It is hosted successfully in windows service, but when trying to call it from signal r client it is giving me exception unable to connect to remote server. 它已成功托管在Windows服务中,但是当尝试从信号r客户端调用它时,却出现了无法连接到远程服务器的异常。 The same code when i tried to access from console app it is working correctly. 当我尝试从控制台应用程序访问相同的代码时,它工作正常。 Although i tried to access it via ip and localhost too. 虽然我也尝试通过ip和localhost访问它。 Windows service code Windows服务代码

client code 客户代码

Without hosting it in windows service, i write same code in console app and tried to access it from the same client it is working. 没有在Windows服务中托管它,我在控制台应用程序中编写了相同的代码,并尝试从正在运行的同一客户端访问它。 I have also Off my firewall and created the inbound rule for this port. 我还关闭了防火墙,并为此端口创建了入站规则。 Waiting for your kind response. 等待您的友好回应。

您的服务器配置为在客户端尝试连接到localhost时侦听IP。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM