DotNet demo connect Selfhost failed

Hi ,please look at this trouble.
dotnet demo cannt connect selfhost
I just fixed the MasterServer Address, this.MasterServerAddress = "XX.XX.XX.XXX:5055";

Comments

  • JohnTubeJohnTube mod
    edited November 13
    Hi @coco,

    What .NET SDK version are you using?
    What demo are you referring to? what class?

    What error do you see?
  • Hi @JohnTube ,
    I use .net version is v4.1.2.14.
    demo loadbalancing
    my selfhost server version is 4.0.29.11263
    The class is DemoClient ,
    I debug the host server code,the client nerver connected to server.the StatusCode is "DisconnectByServerReasonUnknown"
    I just change the this.MasterServerAddress to my server address
  • Hi @coco,

    I see.
    This is probably an issue with the serialization protocol.
    before connecting do this:
    loadBalancingClient.LoadBalancingPeer.SerializationProtocolType = SerializationProtocol.GpBinaryV16;
    or
    this.LoadBalancingPeer.SerializationProtocolType = SerializationProtocol.GpBinaryV16;
    
    Read more here.
  • @JohnTube ,thanks a lot
Sign In or Register to comment.