Click here to Skip to main content
15,915,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I wrote a program signalr technology ( Windows Application)
How is server-side configuration؟
When I run both programs on a computer No Problom.
But When I Run Server On Other Computer And When I Want Connect the client to the server ، I Cant
Error : one or more errors occurred

My Server Side Code ===> Server Computer Ip = 192.168.1.20
C#
[HubName("ZankuHub")]
   public class SignalrHub : Hub
   {



       public  void DetermineLength(CSenfFormat message)
       {
           string jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(message);
         Clients.All.ReceiveLength(jsonString);

       }
   }

-------------------------------------------
C#
class Startup
   {
       public void Configuration(IAppBuilder app)
       {
           app.UseCors(CorsOptions.AllowAll);
           app.MapSignalR();
       }
   }

-----------------------------------
C#
string url = @"http://localhost:8088/";
              WebApp.Start<Startup>(url);

----------------------------------------------------------------
client Side Code
C#
IHubProxy _hub;
           string url = @"http://192.168.1.20:8088/";
           var connection = new HubConnection(url);
           _hub = connection.CreateHubProxy("ZankuHub");
           connection.Start().Wait();

           _hub.On("ReceiveLength", x => Console.WriteLine(x));

------------------------------------------------------------------------------
FireWall In Both Side Is Off

????

What I have tried:

Turn Off FireWall
????????????????
??????????/
Posted
Comments
David_Wimbley 22-Aug-16 12:03pm    
So it looks like you've got the server side running on a different port. The first thing to try is to RDP/log into the server and try accessing your site from localhost:8088 to see if you get a response. Either that or use fiddler to send requests to the server while logged into it to see if it responds locally.

If the app behaves on the server with you logged in, then look at the ports/make sure you've added the port to windows firewall on the server to allow incoming transmissions from that port.
MxMostafa 23-Aug-16 14:42pm    
In Windows App SignalR Must Config IIS In Server ????
MxMostafa 25-Aug-16 14:11pm    
I still could not solve my problem please guide

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900