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
[HubName("ZankuHub")]
public class SignalrHub : Hub
{
public void DetermineLength(CSenfFormat message)
{
string jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(message);
Clients.All.ReceiveLength(jsonString);
}
}
-------------------------------------------
class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseCors(CorsOptions.AllowAll);
app.MapSignalR();
}
}
-----------------------------------
string url = @"http://localhost:8088/";
WebApp.Start<Startup>(url);
----------------------------------------------------------------
client Side Code
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
????????????????
??????????/